I have used Let’s Encrypt for more than 6 domains on a Dedicated server.
I setup the latest domain, say example.org correctly as the others I had previously setup.
I go to the domain on a browser, and I get it’s an insecure domain and that the certificate is used for another domain [test2.example2.com], this is to tell you that the two domains are totally unrelated.
I have deleted the certificates and created another with the arguments -d example.org -d www.example.org
I have no idea what I am doing wrong.
Here is what it looks like on Firefox.
example.org uses an invalid security certificate.
The certificate is only valid for test2.example2.com
Error code: SSL_ERROR_BAD_CERT_DOMAIN
Probably misconfigured your webserver. But as you don't mention the webserver in question (you did see all those questions when you opened this thread, right? Any reason you chose to delete them?) I can't help you with that.
I setup a new domain7 the same way I setup all the previous 6.
Nginx didn’t give any errors when I tested domain7’s configurations.
On loading it to my browser, https//domain7 says the certificate used belongs to demo.domain6
By the way, I have seen almost all threads with almost similar issues the case I found had to do with creating an argument for -d domain7 -d www.domain7 which I already did even before checking the thread.
I want to know what might be the cause, since the configurations of the previous 6 are the same and all are working perfectly with no issues.
I understand the issue, but people on the forum here don't have crystal balls (or they are broken unfortunately). Much more information would be helpful and it is very exhausting if we need to ask all the relevant questions over and over. So I ask you again: why did you remove the initial questions presented to you when you opened this thread?
In any case, the exact method and command line of the client used (you didn't even mention which client you have used?) would be helpful, as wel as the nginx configuration files in question.
Anyway, I personally will be ignoring this thread from now on b/c of the above irritation points. Hopefully someone else can help you if you provide the required information.
The forum software wóuld have presented them to you as you selected the "Help" category:
Anyway, shouldn't you be providing server_name with domain7.com as wel as www.domain7.com in both the server {} blocks? Now you've got one without the www hostname and one only wíth the www hostname..
I only selected the Help after I was done typing. My deepest apologies.
Another thing is I didn’t know I was free to share the domain unlike other dev forums yo simply use example.com.
I did add the www.domain7.com to the server block of the one without www
The affected domain is nutcreative.com
It says the certificate is only valid for demo.wpnaija.com , a subdomain I set up several months back.
The host is Linode,
I can use SSH as root
Whatever hostname is provided for the SNI value, the certificate of demo.wpnaija.com is presented. Can you post the configuration files for that server block?
I suppose you have changed your conf since your post... but something strange is that you are redirecting nutcreative.com and www.nutcreative.com to demo.wpnaija.com with a 302 redirect.