I add the server certificate in PEM format to the SSL store using the following call.
X509_STORE_add_cert(SSL_CTX_get_cert_store(pctx), x509cert); The SSL_get_verify_result(SSL handle); always seems to return error code 20 X509_V_ERR_UNABLE_TO_GET_ISSUER_CERT_LOCALLY. Has anyone been able to get X509_V_OK code from the verify function? This e-mail message and all attachments transmitted with it may contain legally privileged and confidential information intended solely for the use of the addressee. If you are not the intended recipient, you are hereby notified that any reading, dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited.