Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8482653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T19:52:30+00:00 2026-06-10T19:52:30+00:00

I am running a CGI script in C++ using xml-rpc library. The server code

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T19:52:31+00:00Added an answer on June 10, 2026 at 7:52 pm

    Use Complex Client pattern in xmlrpc_c library and set no_ssl_verifyhost and no_ssl_verifypeer options in curl transport true:

    #include <string>
    #include <iostream>
    #include <xmlrpc-c/client.hpp>
    
    int main()
    {
      std::string const serverUrl("https://localhost/cgi-bin/xmlrpcserver");
      std::string const methodName("sample.add");
    
      xmlrpc_c::clientXmlTransport_curl myTransport
        (xmlrpc_c::clientXmlTransport_curl::constrOpt()
         .no_ssl_verifyhost(true)
         .no_ssl_verifypeer(true)
         );
      xmlrpc_c::client_xml myClient(&myTransport);
    
      xmlrpc_c::paramList sampleAddParms;
      sampleAddParms.add(xmlrpc_c::value_int(5));
      sampleAddParms.add(xmlrpc_c::value_int(7));
    
      xmlrpc_c::rpcPtr myRpcP(methodName, sampleAddParms);
    
      xmlrpc_c::carriageParm_curl0 myCarriageParm(serverUrl);
      myRpcP->call(&myClient, &myCarriageParm);
    
      int const sum((xmlrpc_c::value_int(myRpcP->getResult())));
      std::cout << sum << std::endl;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a perl CGI script running on an Apache server. The script is,
I have a Python CGI script script.py running on a server. It produces a
Running my script through Devel::NYTProf showed that the following portion of code took up
I'm using PHP's shell_exec function to call a bash script on my server. shell_exec(bash
On http://www.hesa.ac.uk , we are using a custom 404 handling script to redirect users
I am running a SQLite database within a Perl CGI script which is being
I'm setting up a new Ubuntu server running nginx, and I'm trying to run
I have a very simple CGI webserver running using python CGIHTTPServer class. This class
Currently, I am having Apache running, a PostgreSQL database, and several Python CGI script.
I'm running Lighttpd on Cygwin. I have a Lua CGI script that calls a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.