---
sourceDocument: Yokohama IT Operations Management
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/yokohama/it-operations-management

 Release :

    - yokohama

ft:locale :

    - en-US

ft:publication_title :

    - Yokohama IT Operations Management

ft:clusterId :

    - itom

bundleId :

    - itom

workflow :

    - Technology


---

# Set up the MID Web Server

# Set up the MID Web Server with a .pem file {#ariaid-title1}

* Release version: Yokohama
* 
* Updated January 30, 2025
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Install the .pem file into the MID unified keystore and set up the MID Web Server to enable configuring mTLS on your MID Web Server and agent.

## Before you begin

Copy the labmid/mid.pem file (created in the [Create keys and certificates](https://servicenow-prod.fluidtopics.net/7khjURV6QwpOY6NpnvGsyA "Create keys and certificates in your root directory to enable Transport Layer Security (TLS) setup. TLS setup is necessary before you can configure mTLS on the MID Web Server and agent.") procedure) to your MID Web Server host directory.

Role required: agent_client_collector_admin

## Procedure

1. Access the agent subdirectory under the MID Server's host directory.
2. Run the following commands:  

       bin/scripts/manage-certificates.sh -a midwss /<path>/mid.pem; 
       bin/scripts/manage-certificates.sh -l;

   The relevant part of the output is, `"defaultsecuritypairhandle,midwss"`
3. Validate your MID Server on the instance.
4. Select the MID Server on the instance and select Setup ACC listener.  
   A new MID Web Server is created.
5. Navigate to the newly created MID Web Server record (ecc_agent_ext_context_webserver) on the instance.
6. On the instance, select the MID Web Server and set the Keystore certificate alias value to midwss.
7. Select Save.
8. Restart the MID Web Server.

## What to do next

[Connect the agent to the MID Web Server using TLS](https://servicenow-prod.fluidtopics.net/56b64d1EAbWq9r8eRitIIw "Connect the agent to the MID Web Server to enable configuring mTLS on your MID Web Server and agent.").

