配置Let's Encrypt通配符HTTPS证书

环境

宝塔,Nginx1.8我这里是宝塔配置的网站

配置证书

Let's Encrypt默认证书是在/etc/letsencrypt/live/域名下具体看你的配置。将里面的fullchain.pem的内容复制到宝塔ssl配置的证书里,把privkey.pem的内容复制到宝塔配置ssl的key里

修改配置文件

宝塔默认Nginx配置文件在/www/server/nginx/conf/nginx.conf打开后在最后会发现includeinclude /www/server/panel/vhost/nginx/*.conf;
所以要到/www/server/panel/vhost/nginx/你的域名.conf
这里先去myssl.com检测,根据要求修改

Last modification:August 25th, 2018 at 03:47 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment