Today I had the same problem. I used Ubuntu 14.04 on VirtualBox and Gsoap 2.8.21.
I created C ++ proxy classes with the command:
soapcpp2 -1 -I/opt/libraries/gsoap/build/2.8.21/share/gsoap/import -C -j temporary.h
In the first place, I used the above solution and set ssl_flags to SOAP_SSL_NO_AUTHENTICATION. Thanks to this error disappeared.
In addition, I noticed that when flags are changed to SOAP_TLSv1, it also fixes errors. The flag that causes headaches was SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION, which is set by default to the SOAP_SSL_DEFAULT flag.
Everything seemed fine until I recompiled gsoap from the source with the -enable-debug flag. Shortly after I started to see something like:
SSL check error or warning with certificate to depth 1: Failed to get local issuer certificate
The best solution I have found so far is to download the cacerts.pem file from the gsoap site https://www.cs.fsu.edu/~engelen/cacerts.pem.zip and unzip them next to the executable file.
And of course, in your code you should have something similar to:
soap *soap = soap_new(); soap->ssl_flags = SOAP_SSL_DEFAULT; soap_register_plugin(soap, soap_wsse); soap->cafile = "cacerts.pem";
Then all warnings and error messages disappear.
source share