HTTPS 连接中的服务器/客户端需要放置哪些密钥/证书
我需要检查本地计算机上的 HTTPS 是否正常工作。我正在使用 Openssl S_client 。 我有在 CentOS 中使用 OPENSSL 生成的证书/密钥文件。 我在 Windows 上使用 Apache 服务器。我能够成功连接自签名证书 但我遇到了 CA 签署的案件的问题。
任何人都可以回答我以下问题
我需要将哪些文件放置在 Apache 目录中。我已将 CA 证书、CA 签名证书、服务器私钥放在 Apache 目录中
,在客户端(即 CentOS)上,我有包含 CA 证书、CA 签名客户端证书、客户端私钥的目录。
我正在使用以下命令,该命令适用于自签名证书(无 CA ) openssl s_client -connect client_IP:8443 -CAfile server-selfsigned.pem
openssl s_client -connect client_IP:8444 -key client.key -cert selfsigned-client.pem -CAfile server-selfsigned.pem
但使用 CA 签名证书我很困惑我的文件是什么需要放置在 Apache 以及客户端(cent OS)端需要哪些文件来创建连接
提前致谢
I need to check HTTPS working on my local Machine . I am using Openssl S_client for that .
I have Cert/keys files with me generated with OPENSSL in CentOS .
I am using Apache Server on Windows . I am able to connect succesfully for self-signed certs
but am getting issues with CA signed cases.
Can anybody please answer me the following questions
What files i needed to place in Apache Directory . I have placed CA cert , CA signed Cert , server Private Key in Apache directory
And on the client Side i.e. CentOS i have directory having CA cert , CA signed Client cert , Client Private key.
I am using the below command that works fine for self-signed Certs (with No CA )
openssl s_client -connect client_IP:8443 -CAfile server-selfsigned.pem
openssl s_client -connect client_IP:8444 -key client.key -cert selfsigned-client.pem -CAfile server-selfsigned.pem
but with CA signed certificates am confused what files i need to place at Apache and what files are need at Client (cent OS) side for creating a connection
Thanks in Advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
取决于您正在执行的身份验证类型。我在我的机器上使用 Apache Tomcat 作为服务器,并且没有在 Tomcat 目录中放置任何文件。我只放置 JKS 文件,其中包含所有必要的证书并将它们放置在 Tomcat 根目录中。
我知道我的回复似乎很难让任何人理解,但你可以修改你的问题并在其中添加更多详细信息吗??
Depends on kind of Authentication you are doing if you are doing. I used Apache Tomcat as server on my machine and i didn't place any File in Tomcat directory . I place only JKS files and that contains all necessary cert and Placed them in Tomcat root Drectory..
I know may be my reply seems to be tough for anybdy to understand but can u modify your question and put some more details in that .??