Using the mTLS protocol with a MID Server
Make outbound REST and SOAP calls through a MID Server using mTLS. Store mTLS credential and certificate information on the instance, in a configuration file, or in an external vault. The MID Server retrieves the credential and certificate information and makes outbound REST and SOAP calls using the mTLS protocol.
Mutual authentication using the Transport Layer Security protocol (mTLS) is a secure, certificate-based, authentication scheme where the server and the client authenticate each other. With mTLS, the client presents a certificate or certificate chain to the server, and the server authenticates the client in the same way that the client authenticates the server (mutual authentication).
You can use mTLS with a MID Server by defining a MID Protocol Profile for connections that use mutual authentication. The MID Protocol Profile specifies the mTLS credential and certificate information required for the connection. The MID Server uses the information in the MID Protocol profile to retrieve the keystore, register protocols with the HTTP Client, and make outbound calls with mTLS.
Create a MID Protocol Profile to use mTLS on a MID Server
A MID Protocol Profile enables you to use the mTLS protocol with a MID Server. With a MID Protocol Profile, you can save your mTLS password and certificate information directly on the instance, in a configuration file, or in an external vault. The MID Server uses this information to make outbound REST and SOAP calls using mTLS.
Before you begin
- Role required: admin or action_designer.
- Configure and start a MID Server. For more information, see Configuring MID Servers.
About this task
- Create a Connection & Credential Alias. This task shows you how to create a basic Connection & Credential alias. For detailed information, see Create a Connection & Credential alias.
- Create a connection. This task shows you how to create a basic HTTP(s) connection. For more details, see Create an HTTP(s) connection.
- Create a MID Protocol Profile. The mTLS keystore and password may be stored on the instance (in the MID Protocol Profile), off the instance (in the MID Server's config.xml file), or in an
external vault. ServiceNow supports CyberArk Password Vault for vault storage.
- If you're storing them on the instance, the keystore and password must also be on the MID Server.
- If you're storing them in the config.xml file, make sure you add the mTLS protocol parameters to the file before you configure the MID Protocol Profile. The config.xml is in the /agent directory, in the MID Server installation directory. See MID Server parameters.
- If you’re storing them in an external vault, make sure you set up your CyberArk integration configuration before creating a MID Protocol Profile.
- Test your connection with a REST step. This step is optional.
Procedure
-
Create a Connection & Credential alias.
- Navigate to and select New.
- On the Connection & Credential Aliases form, enter a name in the Name field, and confirm that Connection type is set to HTTP.
- Select Save.
-
Create a connection.
- On the Connection & Credential Aliases form, in the Connections tab, select New.
- On the HTTP(s) Connection form, enter a Name.
- Select URL builder, Mutual authentication, and Use MID server.
- In the MID protocol profile field, use the magnifying glass icon to open the MID Protocol Profiles form and select New.
-
Create a MID Protocol Profile.
- Optional:
Test your connection with a REST step.