nginx - ssl加密访问证书不受信任
怪我咯
怪我咯 2017-05-16 17:27:12
[Linux讨论组]

新购买了一个商业SSL证书,但是配置好之后一直显示 链接不受信任。
求各位大神指点一下,为了更好的描述问题。放出网址,这不是做广告,希望大神给点意见。
下面是nginx的配置文件,
https://www.domain.com

server {

    listen 443;
    server_name www.domain.com;
    index index.html index.htm index.php default.html default.htm default.php;
    root  /var/www;

    include yb.conf;
    #error_page   404   /404.html;
    location ~ [^/]\.php(/|$)
    {
        # comment try_files $uri =404; to enable pathinfo
        try_files $uri =404;
        fastcgi_pass  unix:/tmp/php-cgi.sock;
        fastcgi_index index.php;
        include fastcgi.conf;
        #include pathinfo.conf;
    }

    location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
    {
        expires      30d;
    }

    location ~ .*\.(js|css)?$
    {
        expires      12h;
    }

    access_log  /var/wwwlogs/www.
domain.com.log  access;

    ssl on; 
    ssl_certificate /var/www/conf/
domain.crt; 
    ssl_certificate_key /var/www/conf/server.key;
}

希望大家能帮忙看一下是什么问题,我在火狐下测试一直都是链接不受信任,在IE下则显示连接没有加密。

想死的心都有了,擦

怪我咯
怪我咯

走同样的路,发现不同的人生

全部回复(2)
ringa_lee

Linux 上火狐 28 访问正常。你查看一下证书细节(点下边那个箭头然后在「添加例外」里有查看证书的选项),是不是你的证书还是被替换了?

我想大声告诉你

Firefox 需要把一个公共的证书加到你生成的证书里面去

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送

Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号