本文主要介绍如何使用acme.sh工具来申请let’s encrypt的泛域名证书。
1、安装acme.sh
安装acme.sh之前我们需要先安装必要的工具和依赖
yum install socat curl -y
接着我们安装acme.sh,过程比较简单,只需要执行下列操作即可自动安装。对于安装的用户,官方声称可以使用root用户或者普通用户,这里我们使用root用户进行操作。
curl https://get.acme.sh | sh
安装的过程比较简单,会在目录下创建一个隐藏目录,所有的相关文件都会存放在这里,同时还会创建一个crontab来定时执行任务检测证书。
[root@aliyun /root]# pwd
/root
[root@aliyun /root]# curl https://get.acme.sh