diff --git a/CASA-auth-token/client/library/client.conf b/CASA-auth-token/client/library/client.conf index 50c62d16..5796907e 100644 --- a/CASA-auth-token/client/library/client.conf +++ b/CASA-auth-token/client/library/client.conf @@ -58,7 +58,7 @@ # process to impersonate an ATS and obtain information that # is confidential such as username and passwords. # -AllowUntrustedCerts true +#AllowUntrustedCerts true # # UsersCannotAllowInvalidCerts setting. diff --git a/CASA-auth-token/client/library/linux/rpc.c b/CASA-auth-token/client/library/linux/rpc.c index b0f7e0cd..c56057bd 100644 --- a/CASA-auth-token/client/library/linux/rpc.c +++ b/CASA-auth-token/client/library/linux/rpc.c @@ -208,6 +208,12 @@ OpenRpcSession( setOptError = true; } + if ((result = curl_easy_setopt(pSession->hCurl, CURLOPT_CAPATH, "/etc/ssl/certs")) != CURLE_OK) + { + DbgTrace(0, "-OpenRpcSession- Error setting CURLOPT_CAPATH, code = %d\n", result); + setOptError = true; + } + pSession->headers = curl_slist_append(pSession->headers, "Content-Type: text/html"); pSession->headers = curl_slist_append(pSession->headers, "Expect:"); if ((result = curl_easy_setopt(pSession->hCurl, CURLOPT_HTTPHEADER, pSession->headers)) != CURLE_OK)