How to pass client certificate to company's internal REST api from ServiceNow

neha_joshi
Kilo Contributor

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?

6 REPLIES 6

ChrisBurks
Mega Sage

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


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.


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.


surendarm
Kilo Expert

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.