如何生成 SSL 证书? FF3中如何访问证书无效的页面?
我无法在 firefox3 中访问 localhost https 页面。 它给出了错误
'无法安全连接,因为 SSL 协议已被禁用。 (错误代码:ssl_error_ssl_disabled)'
我通过about:config启用了所有与SSL2相关的首选项,错误更改为
'数据传输错误 浏览器连接成功,但在传输信息时连接中断。 请再试一次。”
第一个错误似乎很可能是由于证书无效造成的,但无法找出第二个错误......
I am not able to access localhost https pages in firefox3. It gave the error
'Can't connect securely because the SSL protocol has been disabled.
(Error code: ssl_error_ssl_disabled)'
I enabled all the SSL2 related preferences through about:config and the error changed to
'Data Transfer Error
The browser connected successfully, but the connection was interrupted while transferring information. Please try again.'
The first error seems most likely due to a invalid certificate but can't figure out the second...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 openssl 创建自签名证书的快速方法:(
最好单独创建一个 CA 证书,并使用它来创建要使用的证书;当您使用上述自签名证书时,apache 会向错误日志抱怨。
但我没有方便的方法来做到这一点。)
然后在你的 apache 配置中(如果需要的话分别为每个虚拟主机),说:
并确保启用了 mod_ssl 。
您也许可以使用curl 来调试您的问题:
Quick way to create a self-signed certificate using openssl:
(It's better to create a CA certificate separately and use that to create a certificate to use; apache complains to the error log when you use a self-signed certificate like above.
But I don't have a recipe handy for doing that.)
Then in your apache configuration (separately for each virtual host if needed), say:
and make sure mod_ssl is enabled.
You may be able to debug your problems using curl:
什么网络服务器提供页面服务? 是 IIS 还是 Apache?
您是否尝试过使用其他浏览器访问这些页面? 如果问题出在浏览器或网络服务器上,回答这些问题将给出线索。
这里是如何创建 SSL 证书的好链接
What web server serves the pages? Is it IIS or Apache?
Did you try to access these pages with other browsers? Answering the questions will give a clue if problems is in browser or web server.
Here is good link how to create SSL ceritificates