Valid certificates, but still a red padlock

My website, netcatharsis.com is run on Google Cloud Platform by Bitnami’s Wordpress. I installed SSL by following this documentation. However, after the setup, when I go to my website by adding https in front of its url, I got a red padlock:
06

It says my certificate is invalid. However, when I check the detail, all my certificates are valid

Did I do anything wrong?

Kind regard.

Your certificate is valid for netcatharsis.com but that redirects to www.netcatharsis.com, which is not on the certificate. You should get a certificate that covers both names. To do that, following the tutorial you linked, when it says

sudo ./certbot-auto certonly --standalone -d DOMAIN

instead type:

sudo ./certbot-auto certonly --standalone -d netcatharsis.com -d www.netcatharsis.com

Hey, Thank you. Should I redo all the steps after that command? Or do I just run that single line of command?

Cheers!

Actually, on reading through that tutorial again… let me recommend a slightly different command:

sudo ./certbot-auto certonly --standalone -d netcatharsis.com -d www.netcatharsis.com --pre-hook "/opt/bitnami/ctlscript.sh stop" --post-hook "/opt/bitnami/ctlscript.sh start"

If I’m right, this should be the only thing you need to do at this point (other than setting up the renewal cron job, if you haven’t already).

1 Like

Bravo!
I got that green padlock!
Many thanks to you, sir!

Have a good day!

1 Like

Hi, I also have a side request.
Do you know to automatically convert www.netcatharsis.com to https://www.netcatharsis.com?
Because when I do it without https, I don’t see the certified version. I have to manually add https to get that green padlock.

You need to add a redirect. Here’s Bitnami’s documentation for how to do that.

Job done. Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.