0
点赞
收藏
分享

微信扫一扫

HTTPS 证书到期 阿里云重新申请,全程10分钟搞定,给阿里一个赞


过去 的网站,今天打开的时候报不是安全认证网站。HTTPS到期了。

 

阿里云证书服务:https://www.aliyun.com/product/cas?utm_content=se_1261823

点立即购买,之后去控制台完成4步骤:补全信息 提交审核 查看进度  下载证书

 

下载好的证书是压缩文件,里面两个文件:

21449785xxxx.PEM

21449785xxxxx.KEY

 

修改对应NGNIX的配置:

server {
listen 443;
server_name xxxx.com www.xxxx.com;
ssl on;
ssl_certificate C:/ietaiji_key/21449785xxxx.pem;
ssl_certificate_key C:/ietaiji_key/21449785xxxxx.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
ssl_prefer_server_ciphers on;
root "D:/phpfind/WWW/ietaiji";
index index.html index.htm index.php;
location ~ \.php$ {
charset gb2312;
try_files $uri =404;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}

重启NGNIX

之后访问https://www.xxxxxx.com

 

发现大功告成,绿色小图标出现在左侧。

 

参考官方:

​​https://yundun.console.aliyun.com/?spm=5176.6660585.774526198.1.JyZybS&p=cas#/cas/download/214497857890346?regionId=​​

 

举报

相关推荐

0 条评论