Rest Message Error in HTTP Post Method

Ravi Kand
Tera Contributor

Dear Friends,

 

We are trying to test the connection from ServiceNow DEV instance to End Point below.

End Point: https://xx-xxxx-api/api/qs/oa2/v1/login/

 

I am able to connect from Postman to End Point successfully with Status 200 OK.

Getting the Access Token. But, getting error when connecting from ServiceNow.

 

Method: POST

HTTP Status: 0

Error Code:    0

 

We are getting the below Error:

The request failed: Request not sent to uri= https://xxx-xxxx-api/api/qs/oa2/v1/login/ : org.apache.commons.httpclient.HttpException: No issuer certificate found for xxx-xxxx-api

 

Please provide your suggestions.

 

Thank you..

12 REPLIES 12

Correct. This is why the connection is not getting successful.

 

You need to have a mutual authentication Profile and also you need to attach a certificate in the x509 Certificate table. 

Ravi Kand
Tera Contributor

Do I need to follow all the steps per below KB article?

OR

any simple steps could you suggest? Thank you.

 

Configure Outbound Mutual Authentication (calling 3rd party Web Services) in ServiceNow Instance - S...

There is no simple way to generate the Key(certificate) unless the key is being provided by the stakeholder itself. 

The KB Article which you shared, that will definitely guide you to create the certificate. Along with this, as you said, the Postman is working fine, so I am assuming you have attached the supporting files to your Postman. (You can download those and use it to generate the JKS certificate)

 

With all our conversation, if my response helps you in any way, please mark my response as helpful or "Accept as Solution" so that your question will help others as well

Thank you