GitHub - acmesh-official/acme.sh: A pure Unix shell script implementing ACME client protocol

安装和更新

安装

安装 socat

shell
# RHEL
$ dnf install socat

安装 acme.sh

一般情况下, 这个地址不会安装成功, 但是可以使用 github host 地址 : https://github.com/521xueweihan/GitHub520

一行命令来解决 github host 无法访问的问题

# GNU(Ubuntu/CentOS/Fedora)
sudo sh -c 'sed -i "/# GitHub520 Host Start/Q" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts'

# BSD/macOS
sed -i "" "/# GitHub520 Host Start/,/# Github520 Host End/d" /etc/hosts && curl https://raw.hellogithub.com/hosts >> /etc/hosts
shell
$ curl https://get.acme.sh | sh -s email=my@example.com