Hello, I am facing some problem when trying to use a https service. SSL_connect() is failing with error -1 (in stub code ...generated using gsoap ... code snippet below), which means some fatal error occured at the protocol level or connection failure occured. Further getting the SSL error code (using SSL_get_error) gives 1 (error in SSL library). Error sting is error:00000001::lib(0) :func(0) :reason(1).
I am connected to the network & able to browse my service ( https://localhost.webserver.net:8443/Version/services/Version?wsdl) in firefox without any problems. Can anyone give me some pointers why it can occur ? PS: Before this i tried to use the service using http, that was working perfectly fine. Is there anything special needs to be done in order to use the https service ? I have build my code with the SSL support. Code sinppet which is causing the problem (from stdsoap2.cpp): /* Try connecting until success or timeout */ for (;;) { if ((r = SSL_connect(soap->ssl)) <= 0) ********** returns -1 { int err = SSL_get_error(soap->ssl, r); ********* returns 1 char *strErr = new char[255]; strErr = ERR_error_string(err, strErr); ********* strErr is comming as : error:00000001::lib(0) :func(0) :reason(1) if (err != SSL_ERROR_NONE && err != SSL_ERROR_WANT_READ && err != SSL_ERROR_WANT_WRITE) { soap_set_sender_error(soap, soap_ssl_error(soap, r), "SSL connect failed in tcp_connect()", SOAP_SSL_ERROR); soap->fclosesocket(soap, fd); return SOAP_INVALID_SOCKET; ********** My program is returning from here.