zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    SDOI2019游记
    noi.ac309 Mas的童年
    51nod1237 最大公约数之和
    loj6074 子序列
    noi.ac89A 电梯
    51nod97B 异或约束和
    bzoj4490 随机数生成器Ⅱ加强版
    CF55D Beautiful numbers
    CF24D Broken robot
    CF226D The table
  • 原文地址:https://www.cnblogs.com/kjcy8/p/13050984.html
Copyright © 2011-2022 走看看