Getting "site is not secure" error after using certbot to get SSL
I have DigitalOcean WordPress droplet. I just recently connected my NameCheap domain to my IP. Then, I used certbot –apache -d domain.com -d www.domain.com, and it said for www.domain.com it could not find a virtual host. It gave me an option of which host to choose, so I chose one and proceeded.
Now when I try to access my website, I get the “Site is not secure” error and when I click more info, it says “The hostname in the website’s security certificate differs from the website you are trying to visit.
Error Code: DLGFLAGSSECCERTCN_INVALID”
Do you know how I can fix this?
Thanks in advance!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.