Score:0

Letsencrypt - Existing domain certificate gets invalid when adding new domain

cn flag

When I try to add ssl certificate for a -domain.com on the nginx server, It gets installed and works but the other existing old-domain.com show a certificate error

This server could not prove that it is old-domain.com; its security certificate is from new-domain.com.
This may be caused by a misconfiguration or an attacker intercepting your connection.

After removing certificate for new-domain and reloading nginx, the old one works back fine. But not together.

certbot --nginx --cert-name new-domain.com -d new-domain.com -d www.new-domain.com

I missed anything ? Please suggest

certbot version: 1.32.0
nginx version: nginx/1.18.0
Ubuntu Version: 22.04 LTS
Lex Li avatar
vn flag
You need to reveal your nginx configuration (did you put `ssl_certificate` in server blocks or globally?) as well as whether SNI is properly configured, http://nginx.org/en/docs/http/configuring_https_servers.html#sni
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.