全球主机交流论坛
标题:
[已解决]当前网站证书不可信且证书链长度为1
[打印本页]
作者:
lsza
时间:
2017-3-27 13:18
标题:
[已解决]当前网站证书不可信且证书链长度为1
本帖最后由 lsza 于 2017-3-27 13:29 编辑
这什么问题导致的?
当前网站证书不可信且证书链长度为1,可能是服务器没有配置完整证书链,是否信任并继续访问?
证书用的是https://assl.loovit.net/
只在手机QQ浏览器中出现过这毛病
已解决看二楼
配置:
<VirtualHost *:88>
ServerAdmin
[email protected]
DocumentRoot "/data/wwwroot/lib"
ServerName lib.*****.com
SSLEngine on
SSLCertificateFile "/usr/local/nginx/conf/ssl/lib.*****.com.crt"
SSLCertificateKeyFile "/usr/local/nginx/conf/ssl/lib.*****.com.key"
ErrorLog "/data/wwwlogs/lib.****.com_error_apache.log"
CustomLog "/dev/null" common
<Directory "/data/wwwroot/lib">
SetOutputFilter DEFLATE
Options FollowSymLinks ExecCGI
Require all granted
AllowOverride All
Order allow,deny
Allow from all
DirectoryIndex index.html index.php
</Directory>
</VirtualHost>
复制代码
server {
listen 80;
listen 443 ssl http2;
ssl_certificate /usr/local/nginx/conf/ssl/lib.*****.com.crt;
ssl_certificate_key /usr/local/nginx/conf/ssl/lib.*****.com.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers EECDH+CHACHA20:EECDH+AES128:RSA+AES128:EECDH+AES256:RSA+AES256:EECDH+3DES:RSA+3DES:!MD5;
ssl_prefer_server_ciphers on;
ssl_session_timeout 10m;
ssl_session_cache builtin:1000 shared:SSL:10m;
ssl_buffer_size 1400;
add_header Strict-Transport-Security max-age=15768000;
ssl_stapling on;
ssl_stapling_verify on;
server_name lib.*****.com;
access_log off;
index index.html index.htm index.php;
root /data/wwwroot/lib;
if ($ssl_protocol = "") { return 301 https://$server_name$request_uri; }
location / {
try_files $uri @apache;
}
location @apache {
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}
location ~ .*\.(php|php5|cgi|pl)?$ {
proxy_pass http://127.0.0.1:88;
include proxy.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|mp4|ico)$ {
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$ {
expires 7d;
access_log off;
}
location ~ /\.ht {
deny all;
}
}
复制代码
作者:
萌䒤萌
时间:
2017-3-27 13:22
根证书(中级)合并进证书没?
作者:
萌䒤萌
时间:
2017-3-27 13:25
证书邮件里有个链接 https://www.alphassl.com/support/install-root-certificate.html
复制链接中的证书添加到证书文件中
作者:
墨迹
时间:
2017-3-27 13:27
证书链不完整
欢迎光临 全球主机交流论坛 (https://loc.442266.xyz/)
Powered by Discuz! X3.4