Hello list,

given that I know in advance the remote end's RSA public key, and that the remote end is responding to my TLS handshake with a self-signed certificate signed by his private RSA key, then what is the proper way of verifying that nobody has tampered with the connection?

What I am currently doing is twofold:

1. compare the stored key with the one received via
   X509_get_pubkey(SSL_get_peer_certificate())
2. Verify that it was indeed signed by the remote peer:
   X509_verify(received_cert, received_pubkey)


Thanks in advance,
Dimitris

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [email protected]
Automated List Manager                           [email protected]

Reply via email to