CertBot增加域名

CertBot增加域名

查询当前所有域名

1
2
3
4
5
6
7
8
9
10
11
12
[root@iZj6cgoyl5x6opizfwaukrZ ~]# certbot certificates
Saving debug log to /var/log/letsencrypt/letsencrypt.log

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Found the following certs:
Certificate Name: 123.com
Serial Number: 44365432b76836764e9e41b30da3a4faaba
Domains: 123.com
Expiry Date: 2020-12-30 14:26:28+00:00 (VALID: 53 days)
Certificate Path: /etc/letsencrypt/live/123.com/fullchain.pem
Private Key Path: /etc/letsencrypt/live/123.com/privkey.pem
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

如果你想删除一个域名

1
2
sudo certbot revoke --cert-name 123.com
sudo certbot revoke --cert-path /etc/letsencrypt/live/123.com/

如果你想增加一个域名的https

1
sudo certbot -d your.new.tld --expand