- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
02-25-2019 03:34 PM
We are testing CCP using curl on UNIX machine, and following is the error, any wrong i'm doing ?
There is no authentication methods enabled for APPID:
~]$ curl -s -X GET 'https://ccp_hostname/AIMWebService/api/Accounts?AppID=xxx&Safe=xxxx&Object=xxxxx' -H "Content-Type:application/json" -v
* About to connect() to ccp_hostname.domainname port 443 (#0)
* Trying 10.10.10.1... connected
* Connected to ccp_hostname.domainname (10.0.0.0) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Peer's certificate issuer is not recognized: 'CN=xxxx,DC=xxxx,DC=xxxxx,DC=net'
* NSS error -8179
* Closing connection #0
* Peer certificate cannot be authenticated with known CA certificates
[ ~]$ curl -s -X GET 'https://xxxxxx/AIMWebService/api/Accounts?AppID=xxxxxx&Safe=xxxxxx&Object=xxxxxx' -H "Content-Type:application/json"
02-25-2019 04:09 PM
@Anurag . My understanding is that even though you are not enabling any authentication mechanism, the client application's certificate will be validated while you are initiating REST call. So please use relevant certificate you used in IIS Server on your client machine where you are running your client.
This may be helpful but not sure
https://stackoverflow.com/questions/14682894/getting-error-in-curl-peer-certificate-cannot-be-authenticated-with-known-ca-c
02-26-2019 10:02 AM
@Nirmalkumar Dhanaraj CCP API worked on machines which are same domain & didn't worked on different domains any idea ?
02-26-2019 02:40 PM
@Anurag . What is/are the authentication mechanism are you configured for your application? Could you please share some screenshots!
What is the response/error code are you getting for failed requests?
FYI - Prerequisites for CCP
To authenticate applications using Windows domain users, the Central Credential Provider must be in the same domain as the requesting application machines. Alternatively, the requesting application domain must be trusted by the Central Credential Provider domain
02-26-2019 03:00 PM
This is the error code when i ran it different domain.
* About to connect() to ccp_hostname.domainname port 443 (#0)
* Trying 10.10.10.1... connected
* Connected to ccp_hostname.domainname (10.0.0.0) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* Peer's certificate issuer is not recognized: 'CN=xxxx,DC=xxxx,DC=xxxxx,DC=net'
* NSS error -8179
* Closing connection #0
* Peer certificate cannot be authenticated with known CA certificates
02-26-2019 07:20 PM
@Anurag . Not able to see any certificate reference from your curl command! I believe you need refer the certificate in your request.
Either you can import the certificate from IIS server and refer in your curl command or use self sign certificate and make sure it should be present in the IIS server.
02-27-2019 07:24 AM
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!

