I have a server with nginx, and there are two websites there: A and B.
Site A is an old one and it's been working with SSL certificate Let's Encrypt via certbot
package and command.
Tonight I decided to add a new website and obtain SSL for it too.
Certificate is obtained successfully and the website B is working with valid SSL.
But when I enter doaminA.com
, I got an error in google chrome:
example.com normally uses encryption to protect your information. When Google Chrome tried to connect to example.com this time, the website sent back unusual and incorrect credentials. This may happen when an attacker is trying to pretend to be example.com, or a Wi-Fi sign-in screen has interrupted the connection. Your information is still secure because Google Chrome stopped the connection before any data was exchanged.
You cannot visit example.com right now because the website uses HSTS. Network errors and attacks are usually temporary, so this page will probably work later.
I dug into this more and figured out a Not Secure error left side of my domain name in google chrome. I clicked on that to see the certificates, I saw:
Issued to: domain_b.com
Issued By: R3
Date: ...
I should note that I checked both certificates at /etc/letsencrypt/live/domain_name/
and cert files are valid and there are no problem with them.
How should I solve the problem for domain A?