How to store .cert and .key files in ServiceNow for third-party tool integration?

Maldanna
ServiceNow Employee
ServiceNow Employee
 

Certainly! Here is the corrected version of your message:


Hi Everyone,

 

Currently, I am working on an integration feature between Icinga2 (a third-party monitoring tool) and ServiceNow. To use the Icinga2 REST endpoint, we need to authenticate first. It supports two types of authentication: Basic and X.509 certificate-based authentication.

I have created server (loclal icinga2 server) certificates and client certificates (where the client is the ServiceNow instance) and tested them using the curl command. These certificates are working fine for certificate-based authentication.

Now, I want to store these certificates (.crt) and .key files in the ServiceNow instance. What is the correct table/path to store these certificates, and how can I extract them in a script include to pass to an HTTPS request?

 

curl command - 

curl -v --cert /etc/icinga2/pki/client.crt --key /etc/icinga2/pki/client.key --cacert /etc/icinga2/pki/ca.crt 'https://****:5665/v1/objects/hosts'

 

 

Thanks,
Maldanna

3 REPLIES 3

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @Maldanna ,

 

Search for  "x509" in navigator you will get a module which stores all the certs in servicenow.

 

I hope this helps...


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect

@Sohail Khilji. Do you mean the table sys_certificate?

Maldanna
ServiceNow Employee
ServiceNow Employee

@Sohail Khilji Do we need to install any plugin for that, or is it a platform feature? 

Maldanna_0-1717669014842.png