certbot生成证书

安装

yum install -y epel-release
yum clean all
yum makecache

yum -y install yum-utils
yum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional
yum -y install certbot python2-certbot-nginx

生成证书

# 80被墙,只能使用手动验证域名所有权
certbot certonly --manual --preferred-challenge dns -d www.your-domain.com

# 自动验证域名所有权
certbot certonly --standalone -d www.your-domain.com
Please deploy a DNS TXT record under the name
_acme-challenge.www.your-domain.com with the following value:
sB5AVgJfV3pb00t5gt_3Cli7Hxy8WQeIxEuN81mqvk4
Before continuing, verify the record is deployed.
# 加一条TXT到host records, host: "_acme-challenge.www",value: "sB5AVgJfV3pb00t5gt_3Cli7Hxy8WQeIxEuN81mqvk4"
# 回车
   Congratulations! Your certificate and chain have been saved at:
   /etc/letsencrypt/live/www.your-domain.com/fullchain.pem
   Your key file has been saved at:
   /etc/letsencrypt/live/www.your-domain.com/privkey.pem
   Your cert will expire on 2020-06-08. To obtain a new or tweaked
   version of this certificate in the future, simply run certbot
   again. To non-interactively renew *all* of your certificates, run
   "certbot renew"
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 本文转载,出处如下:数字证书原理 文中首先解释了加密解密的一些基础知识和概念,然后通过一个加密通信过程的例子说明了...
    随安居士阅读 5,642评论 1 8
  • 前言 文中首先解释加密解密的一些基础知识和概念,然后通过一个加密通信过程的例子说明了加密算法的作用,以及数字证书的...
    sunny冲哥阅读 8,166评论 0 2
  • 数字证书原理 - 无恙 - 博客园 文中首先解释了加密解密的一些基础知识和概念,然后通过一个加密通信过程的例子说明...
    拉肚阅读 5,600评论 0 3
  • 文中首先解释了加密解密的一些基础知识和概念,然后通过一个加密通信过程的例子说明了加密算法的作用,以及数字证书的出现...
    sunny冲哥阅读 5,202评论 0 3
  • 原文地址: 不详 文中首先解释了加密解密的一些基础知识和概念,然后通过一个加密通信过程的例子说明了加密算法的作用,...
    Caiaolun阅读 5,298评论 0 3