RE: server certificate verification fails

2013-05-28 Thread Hazrat Shah
: server certificate verification fails From: owner-openssl-us...@openssl.org On Behalf Of Hazrat Shah Sent: Friday, 24 May, 2013 19:48 I add the server certificate in PEM format to the SSL store using [] X509_STORE_add_cert(SSL_CTX_get_cert_store(pctx), x509cert); I assume you mean to the truststore

RE: server certificate verification fails

2013-05-28 Thread Hazrat Shah
To: openssl-users@openssl.org Subject: RE: server certificate verification fails The certificate is for a client and is self signed. From: owner-openssl-us...@openssl.org [owner-openssl-us...@openssl.org] on behalf of Dave Thompson [dthomp...@prinpay.com] Sent

server certificate verification fails

2013-05-24 Thread Hazrat Shah
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