我从InstantSSL订购了一个ssl证书,并获得了以下文件:
我的ip.ca包,my_ip.crt
我以前还使用openssl生成了自己的密钥和crt文件。
我连接了所有crt文件:
猫my_previously_generted.crt my_ip.ca_bundle my_ip.crt > chained.crt
并将nginx配置如下:
server {
...
listen 443;
ssl on;
ssl_certificate /home/dmsf/csr/chained.crt;
ssl_certificate_key /home/dmsf/csr/csr.nopass.key;
...
}根据客户的要求,我没有域名。当我用https://my_ip打开浏览器
chrome给了我这个错误:
The site's security certificate is not trusted!
You attempted to reach my_ip, but the server presented a certificate issued by an entity that is not trusted by your computer's operating system. This may mean that the server has generated its own security credentials, which Google Chrome cannot rely on for identity information, or an attacker may be trying to intercept your communications.
You should not proceed, especially if you have never seen this warning before for this site.是否有任何方法使ssl证书只使用IP地址?还是我被迫得到一个域名,以获得一个正确的https连接到我的网站?
发布于 2012-07-06 21:20:24
首先,当您在Chrome中打开站点并查看证书属性时,它是否是正确的证书?如果不是,修复您的nginx,使它提供正确的证书。我真的帮不上忙。
假设它是正确的,则需要在证书中定义IP地址,浏览器才能信任它。具体来说,需要将其设置为公共名称(CN)或主题替代名称中的DNS值。请注意,有一个IP地址值,您可以使用主题替代名称,但Chrome不使用它。它只信任在DNS条目中的IP值。
发布于 2012-07-10 00:05:40
我连接了所有的crt文件
这听起来不对。您只需将签名的证书和必要的中间证书连接起来,这两个证书都是由CA提供的。
你自己的,自我生成的证书(不管它是什么)就像一个疼痛的拇指一样突出。
https://serverfault.com/questions/405533
复制相似问题