Rest Message Error in HTTP Post Method
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 05:04 AM
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..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 11:07 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-27-2024 11:36 PM
Do I need to follow all the steps per below KB article?
OR
any simple steps could you suggest? Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 01:04 AM
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