在服务器配置免费的CA证书
下载源码
1 | git clone https://github.com/letsencrypt/letsencrypt |
生成证书
1 | cd letsencrypt/ |
默认有效期90天
自动续期
1 | ./letsencrypt-auto certonly --renew-by-default --email [email protected] -d arclin.me -d g.arclin.me |
报错及解决
报错
Problem binding to port 443: Could not bind to IPv4 or IPv6.解决
停止443端口
比如 关闭ShadowSocks服务(ssserver) 关闭nginx报错
Failed authorization procedure. arclin.me (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Connection refused解决
在DNSPod 绑定 arclin.me域名到本服务器
修改Nginx 配置
1 | server { |
重启服务
1 | nginx -c /usr/local/nginx/conf/nginx.conf |