Which function in OpenSSL c library gets the certificate from the server, checks whether a valid certificate and returns according to the validity. Like valid, untrusted etc?
Which function in OpenSSL c library gets the certificate from the server, checks whether
Share
After establishing the connection just call
SSL_get_verify_result(ssl)on your connection objectsslthe possible return-codes for
SSl_get_verify_result()can be found at the man page in the Diagnostics sectionif you need to get the certificate and validate it yourself, you might want to look at
SSL_get_peer_certificate(ssl)to get the certificate andX509_verify_cert().