CA 认证

PPG007 ... 2022-3-1 Less than 1 minute

# CA 认证

这里只涉及免费获取 CA 证书。

可以访问Let's Encrypt (opens new window)按照文档一步一步完成获取 CA 证书,此文档有中文版本,因此就不在详细介绍了。

除此之外,还可以使用 acme.sh 自动化脚本实现获取 CA 证书。

# acme.sh

文档 (opens new window)

Tips

建议使用 root 用户执行下面的所有操作

首先安装 acme.sh 及其需要的依赖。

sudo  apt-get install socat
curl  https://get.acme.sh | sh -s email=my@example.com
1
2

如果 80 端口为空:

acme.sh --issue -d example.com --standalone -k ec-256 --force
1

安装证书:

acme.sh --installcert -d example.com --fullchainpath /examplePath/fullchain.crt --keypath /data/example.com/example.com.key --ecc --force
1
Last update: November 4, 2022 16:14
Contributors: Koston Zhuang , PPG007 , PPG007