CCP Error when requesting from curl, Please Advise.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CCP Error when requesting from curl, Please Advise.

L4 Transporter

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"

 

6 REPLIES 6

L5 Sessionator

@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

 

 

L4 Transporter

@Nirmalkumar Dhanaraj​ CCP API worked on machines which are same domain & didn't worked on different domains any idea ?

@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

L4 Transporter

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

 

@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.

You mean iis server certificate to import on app server request for the credentials? Can you send the command ?
  • 1073 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

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!