Hello.
This is my domain (for this discussion): example.com
My domain has two A records which point to the same IP address. A.example.com -> 1.1.1.1 B.example.com -> 1.1.1.1
I ran this command:
certbot -apache -d B.example.com
Everything went OK and apache was updated without any issues. However, when I browsed to my web site (B.doron.com) it said that the certificate is invalid because im not goind to A.example.com
Why A? I specifically mentioned "B.example.com" in the command...
What am I missing?
Thanks for the quick reply. The browser returns an error saying that Im trying to go to "B" but the certificate is issued on A. Let me try to show you - so my real "A" is called "TASKS" but I specifically requested it on "B". This is the error:
I checked it but there is not any mention in apache for "TASKS"... the only "common ground" here is that I have two A records pointing to the same IP. But, if I execute the command you showed would the certificate be OK for both subdomains?