Thanks Guys for the help, I got it working by loading the location using API SSL_CTX_load_verify_locations(). The location where I have the certificate available.
I have another question related to certification verification itself. Can by any mean, I verify a peer certificate(self signed) without having it in the trust-store? or Let me put in other words , Server application verifiying clients with each client having its own self signed certificate, Does the server require any prior information about certificates (i.e. having them as part of cert trust store)? Or Is there any way possible of getting peer certificate without having set the SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER, verify_callback); Regards Manoj -- View this message in context: http://openssl.6102.n7.nabble.com/Error-18-self-signed-certificate-tp47361p47388.html Sent from the OpenSSL - User mailing list archive at Nabble.com. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org