Certbot 申請 Let's Encrypt 泛域名證書 用於Windows IIS


因為Windows平台,所以先用的 win-acme,一直驗證不過。換虛擬機用 Certbot 申請,再轉成 IIS 支持格式。

Homestead 安裝 Certbot

sudo su
add-apt-repository ppa:certbot/certbot
apt update
apt install certbot

使用以下命令確認已安裝的Certbot版本:

certbot --version

Certbot 申請泛域名證書 手動驗證

certbot certonly --preferred-challenges dns --manual  -d *.baidu.com --server https://acme-v02.api.letsencrypt.org/directory

參數:
--preferred-challenges dns: 認證方式選擇DNS, 泛域名支持DNS
--manual: 手動驗證模式
-d *.baidu.com: 就是要申請的泛域名了
--server https://acme-v02.api.letsencrypt.org/directory: 泛域名證書是新功能, 如果要使用就得加上這個參數

PEM 格式轉為 PFX 格式

openssl pkcs12 -export -out baidu_combined.pfx -in fullchain.pem -inkey privkey.pem

IIS 導入證書

 

 導入證書后,在相應站點 - 編輯綁定 

 選剛導入的證書。

 

 

引用:
https://www.jianshu.com/p/1eb7060c5ede
https://www.helplib.cn/beryl/install-letsencrypt-ubuntu

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM