How to fix issues when remove LetsEncrypt certificate in single domain on centos 7 server

I have installed lets-encrypt in centos 7 server

yum install epel-release
yum install certbot-nginx
and config nginx.conf with server_name; After that I reload nginx open firewall with port 443 and generate ssl

certbot --nginx -d -d
All OK but I config with options 2.Oneday, I want to remove its? I try the test domain. Installing step by step in the test domain And search how to remove LetsEncrypt on single domain. By the way, I see WTF tuts in this website. I used the ways follow his tutorial

rm -rf /etc/letsencrypt/archive/[testdomainname]/
rm -rf /etc/letsencrypt/live/[testdomainname]/
rm -rf /etc/letsencrypt/renewal/[testdomainname].conf
[Panic]. When I installed ssl in another domain again. It displayed one error

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Starting new HTTPS connection (1):
Obtaining a new certificate
Performing the following challenges:
tls-sni-01 challenge for [domainname]
tls-sni-01 challenge for [www.domainname]
Cleaning up challenges
Cannot find a VirtualHost matching domain www.domainname
So how to fixed this error and certbot revoke -d [sitename].Is it the best way to remove a single Certbot (lets-encrypt) certificate on single domain?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.