我嘗試創建與OpenSSL的客戶機/服務器SSL以下這種方法: http://www.asafety.fr/projects-and-tools/c-client-serveur-ssl-tls-multiplateformes-avec-openssl/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不信任......」
在此先感謝。