certbot申请通配符域名证书

本文详细介绍了如何通过certbot在Linux环境中申请通配符域名SSL证书,包括下载certbot、手动DNS验证、配置Nginx以及设置自动续订证书的步骤。确保遵循教程,您将能够成功为您的通配符域名设置安全的HTTPS连接。
摘要由CSDN通过智能技术生成

certbot官网

下载certbot

# 下载certbot-auto
wget -c https://dl.eff.org/certbot-auto -P /usr/local/bin
# 设置可执行权限
chmod +x /usr/local/bin/certbot-auto
# 查看版本,第一次运行certbot-auto会安装依赖
certbot-auto --version

申请证书

certbot-auto certonly  -d *.example.com --manual --preferred-challenges dns --server https://acme-v02.api.letsencrypt.org/directory 
  1. certonly 安装模式
  2. -d 申请证书的域名,如果是通配符域名输入 *.example.com
  3. –manual 手动安装插件
  4. –preferred-challenges dns 使用 DNS 方式校验域名所有权
  5. –server,Let’s Encrypt ACME v2 版本使用的服务器不同于 v1 版本,需要显示指定
# 输入电子邮箱,用于续费和安全通知
Enter email address (used for urgent renewal and security notices)
 (Enter 'c' to cancel): xxx@163.com

# 服务条款,A:同意,C:取消
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Servic
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值