Centos7 Certbot 常用命令相關總結

Centos7 Certbot 常用命令相關總結

前言

工作中常常遇到一些奇奇怪怪的問題,記錄並總結下來並持續更新

總結

#生成證書1
certbot certonly
#生成證書2
certbot --nginx certonly -n -d domain
#生成證書3 指定nginx路徑
certbot --nginx-server-root=/data/nginx/conf --nginx certonly -n -d domain
#查看幫助
certbot -h
#管理賬號
#Create an ACME account
certbot register        
#Deactivate an ACME account
certbot unregister      
#Update an ACME account
certbot update_account  
#Agree to the ACME server's Subscriber Agreement
--agree-tos       
#Email address for important account notifications | 如果是自定義路徑安裝的nginx,執行該命令會找不到nginx.conf,使用certbot update_account也可以更新郵箱地址。
certbot -m $EMAIL   
#查看服務器上所有域名證書狀態
certbot certificates
#證書過期,從[a-z]首字母順序全部續期
certbot renew
#證書過期,指定nginx路徑,從[a-z]首字順序全部續期
certbot renew --nginx-server-root=/data/nginx/conf --nginx
#
#證書過多,指定域名續期
certbot --nginx certonly -n -d domain
#證書過度,指定nginx路徑,指定域名續期
certbot --nginx-server-root=/data/nginx/conf --nginx certonly -n -d domain
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章