Venkat Damodara
ServiceNow Employee
Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
β07-24-2025
11:31 PM
π§ Overview
In secure enterprise environments, mutual TLS authentication is essential for trusted communication between systems. This guide walks through configuring mutual authentication between two ServiceNow instances using REST Messages, ensuring both client and server validate each otherβs identity.
π οΈ Step-by-Step Setup
1. π Generate a Keystore (JKS)
keytool -genkeypair -dname "cn=<instance>.service-now.com, ou=<OU>, o=<Org>, c=<Country>" \
-alias <instance> -keyalg rsa -keypass '<Password>' -keystore <Keystore>.jks -storepass '<StorePassword>'
2. π Generate a Certificate Signing Request (CSR)
keytool -certreq -alias <instance>.service-now.com -keystore <Keystore>.jks -file <Cert>.csr
Submit the CSR to your internal CA or ServiceNowβs certificate request catalog to obtain a full-chain PEM certificate.
3. π Extract Private Key and Create PKCS12 Certificate
openssl pkcs12 -export -in <fullchain.pem> -inkey <privatekey.pem> -out <cert>.p12 -passout pass:<Password>
4. π Configure Mutual Authentication in ServiceNow
4.A. π₯οΈ Server-Side Configuration
1. Enable Certificate-Based Authentication
- Install the
com.glide.auth.mutual
plugin. - Navigate to Certificate Based Authentication > Properties.
- Enable certificate-based authentication.
2. Upload CA Certificates
- Go to CA Certificate Chain and upload:
- Root CA (e.g.,
ServiceNowRootCA-G2.pem
) - Intermediate CA (e.g.,
ServiceNow Issuing CA - L1A.pem
) - Instance certificate (e.g.,
<instance>.service-now.com.pem
)
- Root CA (e.g.,
3. Map Certificates to Users
- Navigate to Users to Certificates Mapping.
- Upload the instance certificate and map it to a ServiceNow user.
4.B. π Client-Side Configuration
1. Upload PKCS12 Certificate
- Navigate to System Definition > Certificates.
- Upload the
.p12
file and provide the keystore password.
2. Create Protocol Profile
- Go to System Security > Protocol Profiles.
- Create a new profile and associate it with the uploaded certificate.
5. π Test the Integration
5.1. β Using REST Message in ServiceNow
- Navigate to System Web Services > Outbound > REST Message.
- Create a new REST Message and add the API endpoint.
- Under HTTP Methods:
- Set Authentication Type to No Authentication.
- Enable Use Mutual Authentication.
- Select the created Protocol Profile.
- Test the message and verify a 200 OK response.
5.2. π§ͺ Using Postman
- Add the
.p12
file under Settings > Certificates. - Disable SSL verification for self-signed certs.
- Send a GET request to the target instance and verify the response.
β Final Thoughts
Mutual authentication ensures secure, trusted communication between ServiceNow instances. By following this guide, you can confidently set up and test mutual TLS using REST Messages, enhancing your integration security posture.
- 656 Views
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.