我由Symentic免费签署了由第三方生成的ssl证书。这是我的nginx的配置:
server {
listen 8088;
server_name wxtest.laxalex.net
ssl on;
ssl_certificate /srv/wqd_wx_miniapp_test_ssh/server.crt;
ssl_certificate_key /srv/wqd_wx_miniapp_test_ssh/server.key;
ssl_session_timeout 5m;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;
ssl_prefer_server_ciphers on;
root /srv/wqd_wx_miniapp_test;
index index.html index.htm index.nginx-debian.html;
location / {
try_files $uri $uri/ =404;
}
}
网站的根目录,.crt和.key的路径正确。
当我打开Chrome中的页面https://wxtest.laxalex.net:8088
时,页面会显示
ERR_SSL_PROTOCOL_ERROR
安全检查器显示
This page is not secure.
Certificate - valid and trusted
The connection to this site is using a valid, trusted server certificate issued by 未知名称(**in engish : unknown name **).
Resources - all served securely
All resources on this page are served securely.
配置错误或证书无效吗?
您可以访问页面以获取更多信息https://wxtest.laxalex.net:8088
。
PS。证书在中国大陆签名,服务器在香港。地区重要吗?
答案 0 :(得分:0)
在server_name
的末尾忘记了分号。