我尝试按照以下方法使用 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 不受信任...”
提前致谢。