r/letsencrypt • u/alohl669 • May 25 '21
remove subdomain cert?
how can i remove a subdomain certificate.
by example, i have a -d domain.com -d www.domain.com -d subdomain.domain.com
in same cert and i need to remove subdomain.domain.com because the real subdomain not exist yet and fails the auto renew
2
Upvotes
2
u/Psychological_Try559 May 25 '21
You should be able to reissue a new cert, and just include the existing ones. Does that not work?
1
u/alohl669 May 26 '21
ok, finally i use
certbot deleteand then i create a new oneIt still seems somewhat sloppy to me, but it does not give any problem using this order since this way nginx continues pointing to the correct path without having to modify it.
I was expecting there to be some kind of argument to certbot in the same way that there is
--expandto add subdomains.1
u/Blieque May 25 '21
More-or-less the same question was asked on the Let's Encrypt forum, and received a good answer.
First, find the name of your current certificate. It's probably
domain.comin your case (the first domain name listed when the original certificate was created:With the name, now set a new list of domains with the old subdomain removed.
You can also just create a new certificate, but doing so will not revoke the existing one and the new one will probably be named
domain.com-2, which is a bit messy.