I have a C Program using OpenSSL library to establish connection to httpbin.org
using SSL/TLS. The client program is able to establish connection with the server.
Now, I want to connect to my own server whose certificate is signed by our own private or internal CA. At client side, I want to force OpenSSL to use our own CA for certificate verification. So, my question is:
How do I load my own CA certificate using the library and force it to use only that CA for verification of the server certificate?