CCP - HTTP /1.1 is required to be passed in CCP request via CURL
Symptom
1.Client with -http1.1 parameter : It's a Success:
D:\Software\curl>D:\Software\curl\curl.exe -k -v --http1.1 --cert-type p12 --cert D:\Certificate\curl\Certificate\cert1.p12 -H "Content-Type: application/json" "https://10.0.1.1/AIMWebService/api/Accounts?AppID=APP1&Safe=Safe1&Folder=Root&Address=10.0.10.10&UserName=UserName1"
2. Client without -http1.1 parameter : It's a Failure:
D:\Software\curl>D:\Software\curl\curl.exe -k -v --cert-type p12 --cert D:\Certificate\curl\Certificate\cert1.p12 -H "Content-Type: application/json" "https://10.0.1.1/AIMWebService/api/Accounts?AppID=APP1&Safe=Safe1&Folder=Root&Address=10.0.10.10&UserName=UserName1"
Fails with error -
{"ErrorCode":"APPEX003E","ErrorMsg":"The Credential Provider has encountered an error. For more information, see the Credential Provider logs."}* Connection #1 to host 10.0.1.1 left intact
Environment
Credential Providers Central Credential Provider
Cause
CCP REST API web service calls do not support HTTP/2. It supports HTTP /1.1
Resolution
According to the documentation, CCP REST API web service calls do not support HTTP/2. It supports HTTP /1.1
https://docs.cyberark.com/credential-providers/latest/en/Content/CCP/Calling-the-Web-Service-using-REST.htm?tocpath=Developer%7CCentral%20Credential%20Provider%7CCall%20the%20Central%20Credential%20Provider%20Web%20Service%20from%20Your%20Application%20Code%7C_____2#TheGetPasswordWebService
If one is using curl, then one will need to set it to use CURL_HTTP_VERSION_1_1. See: https://curl.se/libcurl/c/CURLOPT_HTTP_VERSION.html