【问题标题】:OpenSSL error in certificates证书中的 OpenSSL 错误
【发布时间】:2013-02-01 15:33:37
【问题描述】:

我尝试按照以下方法使用 openssl 创建客户端/服务器 SSL: http://www.asafety.fr/projects-and-tools/c-client-serveur-ssl-tls-multiplateformes-avec-openssl/

我在服务器上获取:

[+] Use TLSv1 method.
[*] Server's certificat and private key loaded from file.
[+] Server's private key match public certificat !
[+] Server listening on the 1337 port...
[+] Connection [127.0.0.1:60237]
[+] Cipher used : AES256-SHA
[-] No client's certificates
[+] Client data received : ClientName

在客户端:

[+] Use TLSv1 method.
[+] Cipher used : AES256-SHA
[+] Server certificates :
        Subject: /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
        Issuer: /C=AU/ST=Some-State/O=Internet Widgits Pty Ltd
[-] Server certificates X509 is not trust...
[+] Server data received : Enchante ClientName, je suis ServerName.

你知道我为什么会收到这些消息吗:

“没有客户的证书”

“服务器证书 X509 不受信任...”

提前致谢。

【问题讨论】:

    标签: openssl certificate


    【解决方案1】:

    “没有客户的证书”

    您在代码中看到任何客户端证书吗?

    “服务器证书 X509 不受信任...”

    OpenSSL 版本?您尝试加载的证书是什么?

    【讨论】:

      【解决方案2】:

      “无客户端证书”表示客户端代码不共享客户端证书。客户端身份验证很少在客户端和使用 SSL/TLS 的服务器之间实现;这不是强制性的。

      “服务器证书 X509 不受信任...”表示客户端收到的服务器证书未使用证书颁发机构签名。您的计算机不知道整个可信证书服务器链,但它不是致命的。

      【讨论】:

        猜你喜欢
        • 2012-09-20
        • 2010-11-27
        • 2012-08-24
        • 2014-08-28
        • 2015-10-19
        • 2020-07-04
        • 1970-01-01
        • 2011-01-16
        • 2021-11-28
        相关资源
        最近更新 更多