Hi Sanjay,
Thanks for sending your certificate over. I noticed that "client.pem" included an encrypted RSA private key. As I wasn't sure if this was a test cert/key pair, I removed your attachment from this post for security reasons but did have a chance to look at the file.
A few notes:
1. client.pem includes three items - a CA certificate, a peer certificate, and an RSA private key
2. You should only load the CA certificate with wolfSSL_CTX_load_verify_locations()
3. The client's certificate (if doing mutual authentication) would be loaded with wolfSSL_CTX_use_certificate_file()
4. The client's private key would be loaded with wolfSSL_CTX_use_PrivateKey_file(), but you first would need to register a password callback using wolfSSL_CTX_set_default_passwd_cb(). The password callback will be called during key decryption, allowing your callback to provide the password.
Regarding "DHE-RSA-AES256-SHA256", can you let me know the exact steps you are taking to compile the wolfSSL library and run the example client that results in you getting the ""DHE-RSA-AES256-SHA256" is undefined" error?
Thanks,
Chris