I am running a CGI script in C++ using xml-rpc library. The server code is located in /var/www/cgi-bin/ directory to be run by Apache. Apache is also configured to allow permission running the cgi. Now the problem is that since Apache on my system has a self-signed certificate, when I run the client to access this address:
“https://localhost/cgi-bin/xmlrpcserver”
It gives me this error:
Client threw error: Unable to transport XML to server and get XML response back. libcurl failed to execute the HTTP POST transaction, explaining: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed
For the time being, how can I bypass checking certificate verification to run and test my application. I want SSL connection (to encrypt the entire communication) while I want to ignore certificate verification and use the current self-sign certificate.
Thanks
Use Complex Client pattern in xmlrpc_c library and set no_ssl_verifyhost and no_ssl_verifypeer options in curl transport true: