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!