Reference: Installing and configuring a MID Server on a Windows machine

This reference includes an example installation and configuration of a ServiceNow MID Server on a machine with Microsoft Windows.

Important: If Tanium or ServiceNow are hosted on-premises, you must configure a MID Server to facilitate communication between Tanium and ServiceNow. A MID Server is not required for a cloud-based environments
Note: This example provides basic guidance. For complete and up-to-date instructions, refer to the ServiceNow documentation and ServiceNow support for any additional assistance required. To view MID Server requirements, see ServiceNow documentation: MID Server system requirements. Contact ServiceNow support for any additional assistance required to set up a MID Server.

Create a MID Server user account

To use a MID Server, create a user account with the mid_server role in ServiceNow.

  1. Sign in to ServiceNow.

    In the filter navigator, enter Users . Click System Security > Users and Groups > Users.

    Figure 1. From the Service Now filter navigator, click System Security > Users and Grou...
    From the ServiceNow filter navigator, click System Security > Users and Groups > Users.
  2. Click New.
    Figure 2. Click New to add a new user.
    Click New to add a new user.
  3. Enter the account details and click Submit.
    Figure 3. Specify user details, including User ID, First name, and Last name.
    Specify user details, including User ID, First name, and Last name.
  4. From the table header on the Users page, click Toggle Filters Toggle Filters. Under User ID, type the name of the user you just created and press Enter.
  5. Click the name of the user to edit the user details.
  6. On the Roles tab, click Edit....
    Figure 4. Click Edit to update the roles
    Click Edit to update the roles
  7. Add the mid_server role to the Roles List column, and then click Save.
    Figure 5. Add the mid server role to the user.
    Add the mid_server role to the user.
  8. Sign out of your ServiceNow instance and then verify that the MID Server user account can sign in to ServiceNow.

    If prompted, change the password.

    Figure 6. Sign into Service Now with the new user.
    Sign into ServiceNow with the new user.
  9. When finished, sign out of your ServiceNow instance.
    Figure 7. Sign out of Service Now when complete.
    Sign out of ServiceNow when complete.

Download the MID Server installer

Before you install the MID Server, download the installer file.

  1. Sign in to ServiceNow.

    In the filter navigator, enter MID server . Click MID Server > Downloads.

    Figure 8. From the Service Now filter navigator, click Mid Server > Downloads.
    From the ServiceNow filter navigator, click Mid Server > Downloads.
  2. Download the MID Server installer file.
    Figure 9. Click the MID Server installer to download.
    Click the MID Server installer to download.

Retrieve SSL certificate from your Tanium instance

To set up a MID Server that can communicate with Tanium, download the SSL certificate from the Tanium instance.

Sign in to Tanium Console and export a copy of the SSL certificate in CRT format to your local machine.
Figure 10. Example that shows the SSL certificate in the URL field of a browser.
Example that shows the SSL certificate in the URL field of a browser.
Figure 11. Click Export to download the certificate, and then select the CRT format.
Click Export to download the certificate, and then select the CRT format.

Install the MID Server

Install the MID Server on a Windows machine.

Note: To view MID Server requirements, see ServiceNow documentation: MID Server system requirements.
  1. From the Windows machine, open a command prompt in administrator mode.
  2. Run the following commands to create a directory to install the MID Server binaries and then CD into the directory. For this example, we use the C:\MidServer directory.
    CODE
    c:
    cd\
    mkdir MidServer
    cd MidServer
  3. Copy the downloaded MID Server installer file to the C:\MidServer directory.
  4. Run the MSI file from the command prompt in administrator mode.
    Figure 12. Run the installer from a command prompt in administrator mode.
    Run the installer from a command prompt in administrator mode.
  5. Click Next, read and accept the end user license agreement, and then click Next.
    Figure 13. Click Next from the welcome page of the setup wizard.
    Click Next from the welcome page of the setup wizard.
    Figure 14. Mid Install 2
    mid_install_2
  6. Specify the URL of the ServiceNow instance in addition to the username and password of the MID Server user that you created in Create a MID Server user account.

    Then, click Test Your Connection.

    Figure 15. Mid Install 3
    mid_install_3
  7. A message appears if the connection is successful.

    Click Close and then Next.

    Figure 16. Mid Install 3B
    mid_install_3b
    Note: If the connection is not successful, verify the system credentials, and ensure the user account is assigned the mid_server role in ServiceNow.
  8. Specify a name for the MID Server, a service account name and password, and then click Validate MID Service Settings.
    • MID Server Name: Specify a name that you can easily identify as the MID Server. As a best practice, use the short name of your ServiceNow instance URL.

    • Service Account Name: Specify either a local user on the endpoint from which you are running the MID Server, or a domain account.

      Note: On the endpoint, this user must have Log on as Service rights.
    • Service Account Password: Specify the password of the user you select for Service Account Name.

    Figure 17. Mid Install 4
    mid_install_4
  9. A message appears if the service settings are valid.

    Click Close and then click Next.

    Figure 18. If the settings are valid, click Close and then click Next.
    If the settings are valid, click Close and then click Next.
  10. Specify C:\MidServer\ for the installation path of the MID server and then click Next.
    Figure 19. Select the directory to install the MID Server.
    Select the directory to install the MID Server.
  11. Review the settings, make any changes as needed, and then click Next.
    Figure 20. Review the settings and click Next.
    Review the settings and click Next.
  12. Click Install to start the installation.
    Figure 21. Click Install.
    Click Install.
  13. After the installation completes, click Finish.
    Figure 22. Click Finish.
    Click Finish.

Register the Tanium Server CRT with the MID Server

On the Windows machine, register the Tanium Server certificate that you downloaded.

  1. From the Windows machine, open a command prompt in administrator mode.
    Tip: You can reuse the command prompt from the previous section.
  2. Run the following command to change to the C:\MidServer\agent\jre\bin directory:
    CODE
    cd C:\MidServer\agent\jre\bin
    Figure 23. Change to the C:\Mid Server\agent\jre\bin directory.
    Change to the C:\MidServer\agent\jre\bin directory.
  3. Run the following command to register the CRT file:
    PYTHON
    keytool.exe -import -alias tanium.server.url -file ..\..\..\..\tanium.server.crt -keystore ..\lib\security\cacerts
    Figure 24. Run the keytool.exe command
    Run the keytool.exe command
  4. When prompted for the keystore password, enter changeit.
    Figure 25. Enter changeit (all lowercase) for the keystore password.
    Enter changeit (all lowercase) for the keystore password.
  5. After the commands successfully complete, start the ServiceNow MID Server service.
    Figure 26. Start the Service Now MID Server service.
    Start the ServiceNow MID Server service.

Enable the MID Server in ServiceNow

The final step to set up a MID Server is to enable the MID Server in your ServiceNow instance.

  1. Sign in to ServiceNow.

    In the filter navigator, enter MID Server . Click MID Server > Servers.

    Figure 27. From the Service Now filter navigator, click MID Server > Servers.
    From the ServiceNow filter navigator, click MID Server > Servers.
  2. Select the new MID Server.
    Figure 28. Click the name of the MID Server.
    Click the name of the MID Server.
  3. Click Validate then click Save.
    Figure 29. Click Validate and then click Save.
    Click Validate and then click Save.
The MID Server now shows as validated and is ready for use.
Figure 30. The Validated field contains a value of 'Yes'.
The Validated field contains a value of 'Yes'.