SSL Problem

SSL Problem

by Gilbert Ferreira -
Number of replies: 5

Hi

So I am trying to activate SSL.  I am using the steps provided on:

https://www.tmdhosting.com/tutorials/moodle/enable-ssl.html

BUT, when I follow the steps and get to HTTP security there is NO option to select:

Use HTTPS for logins.

Other Steps I have done:

SSL is installed on the server and activated

I have run the HTTPS conversion tool, but now I get the following message:

This instance is still running on HTTP. You can still run this tool and external content will be changed to HTTPS, but internal content will remain on HTTP. You will need to run this script again after switching to HTTPS to convert internal content.

Thanks in advance.

Average of ratings: -
In reply to Gilbert Ferreira

Re: SSL Problem

by Ken Task -
Picture of Particularly helpful Moodlers

Think the issue might be in config.php.   Change site url from http:// to https:// ... no trailing 'slash' at the end.

And you won't be using that setting for 'use https on login' anymore ... not needed.  If everything config'd correctly site will be full time https://

TMD docs differ with Moodle Docs:

https://docs.moodle.org/38/en/Transitioning_to_HTTPS

'SoS', Ken

In reply to Ken Task

Re: SSL Problem

by Gilbert Ferreira -
hi Ken,

Thank you for this...I did what you suggested...and it does show https in the address, 

But now, when I type my url into the address bar and hit enter the "lock" appears for a split second and then it reverts back to NOT SECURE.

It also states my certificate is valid - see screen shot

Regards,
Gil
Attachment screenshot.png
In reply to Gilbert Ferreira

Re: SSL Problem

by Gilbert Ferreira -
Checked in Safari and there it works...checked an incognito window in Chrome and it does not work there
In reply to Gilbert Ferreira

Re: SSL Problem

by Ken Task -
Picture of Particularly helpful Moodlers

Mixed content icon.

https://support.mozilla.org/en-US/kb/mixed-content-blocking-firefox?redirectlocale=en-US&as=u&redirectslug=how-does-content-isnt-secure-affect-my-safety&utm_source=inproduct

Curl test shows ok ... server using LiteSpeed.

Edit front page images ... in theme ... url's to those images should be https://

In Chrome/FireFox, clear cache/cookies for site.

In your moodle, after above, purge all caches.

SoS', Ken

In reply to Ken Task

Re: SSL Problem

by Gilbert Ferreira -
Thanks for your assistance Ken.

I actually just ran the HTTPS conversion tool again and it sorted it all out.

Have a great day and stay safe!