Certbot 自动续期

查询已有证书

sudo certbot certificates

删除出错证书

sudo certbot delete --cert-name yourdomain.com
sudo rm /etc/letsencrypt/renewal/yourdomain.com-0001.conf
sudo rm /etc/letsencrypt/renewal/yourdomain.com.conf

sudo rm -rf /etc/letsencrypt/archive/yourdomain.com-0001
sudo rm -rf /etc/letsencrypt/archive/yourdomain.com
sudo rm -rf /etc/letsencrypt/live/yourdomain.com-0001
sudo rm -rf /etc/letsencrypt/live/yourdomain.com

重新生成证书

有可能将其他子域名移到其他机器,这样在下次自动续期的时候就无法整体续期,需要修改。

sudo certbot certonly --webroot --agree-tos --email [email protected] -w /opt/www -d xxx.com -d rss.xxx.com -d we.xxx.com

自动续期证书并 reload openresty

30 3 * * 0 /usr/bin/certbot renew --quiet --renew-hook "/bin/systemctl reload openresty"
暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇