Home > Back-end >  SSL certificate on Heroku app not working
SSL certificate on Heroku app not working

Time:10-20

I recently downloaded an SSL certificate from zeroSSL.com and set it up in my Heroku CLI. Now the website still uses HTTP but it shows that an SSL certificate has been added on heroku.

CodePudding user response:

If Heroku shows that the certificate was added, it should be available. Can you successfully browse to your site using HTTPS?

Note that Heroku doesn't redirect from HTTP to HTTPS for you. They recommend that you do that in application code:

Redirects need to be performed at the application level as the Heroku router does not provide this functionality. You should code the redirect logic into your application.

That page has several examples for how to redirect using common languages and frameworks. I'm not sure what you're using, but I suggest you start there.

  • Related