我在centos 7服务器上安装了让我们encryption
yum install epel-release yum install certbot-nginx
并用server_name opvietnam.com www.opvietnam.com;configurationnginx.conf server_name opvietnam.com www.opvietnam.com; 之后,我重新加载nginx打开防火墙与端口443和生成ssl
certbot --nginx -d opvietnam.com -d www.mywebsite.com
一切OK,但我configuration选项2.Oneay,我想删除它的? 我尝试testing域。 在testing域中逐步安装并search如何删除单个域上的LetsEncrypt。 顺便说一下,我在这个网站上看到了WTF的内容。 我用他的教程的方式
rm -rf /etc/letsencrypt/archive/[testdomainname]/ rm -rf /etc/letsencrypt/live/[testdomainname]/ rm -rf /etc/letsencrypt/renewal/[testdomainname].conf
[恐慌]。 当我再次安装ssl在另一个域。 它显示了一个错误
Saving debug log to /var/log/letsencrypt/letsencrypt.log Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org 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
那么如何解决这个错误和certbot revoke -d [sitename] 。它是在单个域上删除单个Certbot(让 – encryption)证书的最好方法吗?
我认为www.domainname不是你刚刚删除的那个证书的域名。 错误Cannot find a VirtualHost matching domain www.domainname表明这个问题不是让我们encryption,而是通过configurationtestingcertbot执行。
虽然您使用的是Nginx,但错误消息使用Apache术语VirtualHost 。 请参阅Nginxconfiguration中的server { }部分是否有server_name www.domainname; 或不。 您也可能将server_name domainname www.domainname; 。 如果你不这样做,请添加一个。