SSL Certificate[Let's Encrypt]

Let’sEncrypt免费证书申请,其有效期为三个月,不过到期会发提醒到你的邮箱

方法一

直接去网站www.sslforfree.com获取,详细看网页内的说明。

方法二

编译源码的方式 , 环境 ubuntu14

先克隆源代码:

 root@ubu:/#cd /opt/ssl
 root@ubu:/opt/ssl#git clone https://github.com/letsencrypt/letsencrypt 
 假定邮箱   email@domain.com
 假定域名   domain.com
           www.domain.com
           a.domain.com
 cd /opt/ssl/letsencrypt
 root@ubu:/opt/ssl/letsencrypt#./letsencrypt-auto certonly --standalone --email <邮箱地址> -d domain.com -d www.domain.com -d a.domain.com

注:多个域名就加到结尾 -d some.domain.com, 编译的时候一定要保证环境健全,如果报错根据提示修复后在编译

编译成功后,最后会显示类似如下的信息:
IMPORTANT NOTES:
 - Congratulations! Your certificate and chain have been saved at
   /etc/letsencrypt/live/domain.com/fullchain.pem. Your cert will
   expire on 2017-01-20. To obtain a new or tweaked version of this
   certificate in the future, simply run letsencrypt-auto again. To
   non-interactively renew *all* of your certificates, run
   "letsencrypt-auto renew"
 - If you like Certbot, please consider supporting our work by:

   Donating to ISRG / Let's Encrypt:   https://letsencrypt.org/donate
   Donating to EFF:                    https://eff.org/donate-le

根据其中的信息/etc/letsencrypt/live/domain.com/fullchain.pem可知生成的证书文件在目录/etc/letsencrypt/live/domain.com/
图片
在live的子目录中存在如下文件:
图片
看到的都是软连接,是吧!不过没关系其真正的文件在archive目录里

在nginx中使用SSL证书:

图片

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值