How to pass client certificate to company's internal REST api from ServiceNow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 09:20 AM
I am creating an outbound REST message and I need to call our company's internal REST api via layer7. How do I attach the SSL certificate in the GET REST api call?
- Labels:
-
Integrations
- 5,063 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-02-2016 02:06 PM
Hi Neha,
If I understand your question correctly this link may be what you're looking for: Outbound SOAP Web Service - ServiceNow Wiki
More specifically starting at section 5.2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 10:43 AM
Hi Chris, Thank you for your reply. The link (section 5.2) that you shared refers to SOAP messages. I am trying to call REST API. For this, I did the configuration as follows.
1) Create a certificate of type PKCS12 keystore with the valid certificate attachment. Lets call it "myKeystore".
2) Create protocol profile "myhttps" using the above keystore myKeystore
3) Create a new REST message call "myRESTAPICall". The endpoint is "myhttps://<endPointURL>"
4) Configure it to use "myhttps" protocol
On testing GET api call, I get response code as 500, and do not see any other response message. I am able to call the same REST API with the valid certificate via other tools like SOAP UI/Fiddler.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-03-2016 12:24 PM
I apologize but I meant 5.3 for mutual authentication. It's basically the same steps of creating a protocol profile and certificate keystore so that when configuring the REST message to use mutual authentication it can be used.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-17-2016 08:19 AM
Hi,
Can you please let me know..were you facing the same issue which I have posted in the community link ?
If yes and you were able to achieve this integration, kindly provide your comments on how you were able to resolve this issue.
Thanks in advance.