I have a Service deployed on a Server which is Signed using self signed certificate.
I am currently able to access the service using
if (soap_ssl_client_context(&soap,
SOAP_SSL_NO_AUTHENTICATION,
NULL , NULL,
NULL, /* `` ```````````````````````````````` ``*/
NULL,NULL )!= SOAP_OK)
{
But i guess in this case my backend server can be replaced and my client will still work because i wont be doing any cert validation.
To Do it right in Prod how can i import the Self signed certs and how can i pass them through GSOAP to validate the certs, so i can make sure that i am connecting to right host. Any code Examples are highly appreciated as i am bit new with Gsoap , openSSL & C++
openssl s_client -connect : -showcerts < /dev/null | openssl x509 -outform PEM > .pem
This Did it