soap_ssl_init();
if (CRYPTO_thread_setup())
{ fprintf(stderr, "Cannot setup thread mutex\n");
exit(1);
}
soap_init(&soap);
if(soap_ssl_client_context(&soap,
SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION|SOAP_SSL_SKIP_HOST_CHECK,
NULL,
NULL,
"cacert.pem",
"D:\\work\\soaptest\\soaptest\\testclient\\testclient\\test",
NULL))
{
soap_print_fault(&soap,stderr);
exit(1);
}
/*soap_ssl_init();
if(soap_ssl_client_context(&soap,
SOAP_SSL_NO_AUTHENTICATION,
NULL,
NULL,
NULL,
NULL,
NULL))
{
soap_print_fault(&soap,stderr);
exit(1);
}*/
when I choose SOAP_SSL_NO_AUTHENTICATION,the client side works well.
But if I want to verify the certificate of the server side and choose
soap_ssl_SOAP_SSL_REQUIRE_SERVER_AUTHENTICATION|SOAP_SSL_SKIP_HOST_CHECK,error
come:
"SSL error", "Can't read CA file and directory"
why?
how can I figure it out?
thank u for your help