How to store .cert and .key files in ServiceNow for third-party tool integration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 02:51 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 03:01 AM
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....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 03:12 AM
@Sohail Khilji. Do you mean the table sys_certificate
?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2024 03:17 AM