18,356
社区成员
发帖
与我相关
我的任务
分享
#ifdef WITH_OPENSSL
if(soap_ssl_server_context(&SmsWBS_soap,
SOAP_SSL_DEFAULT, // use SOAP_SSL_REQUIRE_CLIENT_AUTHENTICATION to verify clients: client must provide a key file e.g. "client.pem" and "password"
"cer/server2.pem", // keyfile: see SSL docs on how to obtain this file
"123456", // password to read the key file
NULL,
//"cer/client2.pem", // cacert file to store trusted certificates (to authenticate clients)
NULL, // capath
NULL, // DH file, if NULL use RSA
NULL, // if randfile!=NULL: use a file with random data to seed randomness
NULL // server identification for SSL session cache (unique server name, e.g. use argv[0])
)){
soap_print_fault(&SmsWBS_soap, stderr);
exit(-1);
}
#endif