博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
使用acme.sh签发Let's Encrypt的免费数字证书
阅读量:4708 次
发布时间:2019-06-10

本文共 1088 字,大约阅读时间需要 3 分钟。

--------------安装----------------

curl https://get.acme.sh | sh
#让alias生效
source ~/.bashrc

-------------设置DNS API------------
在dns运营商网站设置DNS API的API KEY/SECRET KEY
#例如阿里云,域名所在账号登录后,进入如下页面进行设置 https://usercenter.console.aliyun.com/#/manage/ak

# 得到key和Secret执行以下两行

export Ali_Key="sdfsdfsdfljlbjkljlkjsdfoiwje"

export Ali_Secret="jlsdflanljkljlfdsaklkjflsa"

-------------申请签发证书--------------

#可以多个域名同时申请,也可以是泛域名
acme.sh --issue --dns dns_ali -d smallpay.cn -d *.smallpay.com

#显示得到证书信息

#[Thu Sep 26 12:29:40 CST 2019] Your cert is in /root/.acme.sh/*.smallpay.com/*.smallpay.com.cer
#[Thu Sep 26 12:29:40 CST 2019] Your cert key is in /root/.acme.sh/*.smallpay.com/*.smallpay.com.key
#[Thu Sep 26 12:29:40 CST 2019] The intermediate CA cert is in /root/.acme.sh/*.smallpay.com/ca.cer
#[Thu Sep 26 12:29:40 CST 2019] And the full chain certs is there: /root/.acme.sh/*.smallpay.com/fullchain.cer

-------------acme会自动添加crontab-----

#检查下crontab,到期会自动续
#crontab -l
#43 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null

转载于:https://www.cnblogs.com/suminem/p/11607003.html

你可能感兴趣的文章
轻松入门软件测试--提交bug与跟踪
查看>>
鼠标拖拽改变对象的属性,鼠标拖拽DIV移动
查看>>
Tutorial 7: Schemas & client libraries
查看>>
svn 命令
查看>>
redis集群的ruby环境
查看>>
Linux下Nagios的安装与配置
查看>>
实战Java虚拟机——JVM故障诊断与性能优化-BOOK
查看>>
NETBSD-DTARCE
查看>>
Android5.0新特性之——控件移动动画(初级)
查看>>
Windows Azure 安全最佳实践 - 第 6 部分:Azure 服务如何扩展应用程序安全性
查看>>
基于visual Studio2013解决算法导论之047赫夫曼编码
查看>>
cocos2d-x游戏开发系列教程-超级玛丽09-怪物激活与移动
查看>>
冒泡排序
查看>>
iOS开发之主题皮肤
查看>>
【leetcode】Factorial Trailing Zeros
查看>>
临时表添加以及优化
查看>>
[POI2011]DYN-Dynamite
查看>>
文件系统基础
查看>>
JDBC优化策略总结
查看>>
动态链接过程
查看>>