Centos7.4 Certbot 删除证书

2020-02-08  本文已影响0人  squidbrother
删除证书

1.撤销证书
语法:
certbot revoke

你的域名文件夹 可能有多个文件,如果有cert1.pem,执行这个命令
certbot revoke --cert-path /etc/letsencrypt/archive/你的域名文件夹/cert1.pem

Would you like to delete the cert(s) you just revoked, along with all earlier
and later versions of the cert?

选择 y 删除所有证书版本

2.删除证书
语法:
certbot delete

3.额外操作
删除 nginx.conf中关于 Certbot的代码
有关键词注释的位置,如: #managed by certbot

4.重启nginx服务,又恢复为http访问了,如果不出现,则换一个浏览器,或者删除本地浏览器缓存

参考文章1

上一篇 下一篇

猜你喜欢

热点阅读