:bubble_funny:
noob 一个,写过程记录

项目地址
https://github.com/xdtianyu/scripts/tree/master/lets-encrypt
首先找个目录创建文件夹

mkdir ssl

cd ssl

wget https://raw.githubusercontent.com/xdtianyu/scripts/master/lets-encrypt/letsencrypt.conf

wget https://raw.githubusercontent.com/xdtianyu/scripts/master/lets-encrypt/letsencrypt.sh

chmod +x letsencrypt.sh

vi letsencrypt.conf

ACCOUNT_KEY="letsencrypt-account.key"
DOMAIN_KEY="set-fire.com.key"
DOMAIN_DIR="/home/nodebb/public"
DOMAINS="DNS:set-fire.com,DNS:www.set-fire.com"

按照自己的目录和域名来修改:

DOMAIN_KEY
DOMAIN_DIR
DOMAINS

执行
./letsencrypt.sh letsencrypt.conf

执行完毕后你会看见有这些文件

0_1460359668548_upload-5c50c49c-025b-4a5e-82db-39435acfa5d4

然后就是配置nginx

0_1460359696476_upload-7f4f8d9a-1bdc-4aef-a42a-2c93c5b838b5

last edited by BlueBlue_Master