ssl证书我选择了免费的Let’s Encrypt
1.下载脚本并生成证书
# git clone https://github.com/letsencrypt/letsencrypt
# cd letsencrypt
# ./letsencrypt-auto certonly --standalone --email 邮箱 -d 域名
因为网络问题pip可能需要换源,请自行网上查找换源方法。
2.设置自动延期
# ./letsencrypt-auto --renew certonly -