Skip to content

acme来自动化的签署Let’s Encrypt SSL证书

Tags:
# 
apt install -y curl tar nginx

yourdomain="rnerdlava3h.1024.ee"
curl https://get.acme.sh | sh

# 获得证书 
# --force 来强制更新
~/.acme.sh/acme.sh  --issue -d $yourdomain  --webroot /var/www/html 

# 安装 - 默认每60天自动更新
mkdir -p /usr/local/etc/xray/cert
~/.acme.sh/acme.sh --installcert -d $yourdomain --key-file /usr/local/etc/xray/cert/private.key --fullchain-file /usr/local/etc/xray/cert/cert.crt
~/.acme.sh/acme.sh --upgrade --auto-upgrade
chmod -R 755 /usr/local/etc/xray/cert

Leave a Reply

Your email address will not be published.