Interested in a ServiceNow event built for developers? Registration for now[dev]26 is officially open!

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

Maldanna
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

Not applicable

Hi @Maldanna ,

 

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

 

I hope this helps...

@Sohail Khilji. Do you mean the table sys_certificate?

Maldanna
ServiceNow Employee

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

Maldanna_0-1717669014842.png