Configure a JSON Web Token (JWT) provider and token for Health Log Analytics

  • Release version: Australia
  • Updated May 4, 2026
  • 2 minutes to read
  • Configure a JWT provider and token to authenticate log streaming integrations sending data to Health Log Analytics (HLA) via ITOM Gateway. This configuration is required before you can activate any ITOM Gateway integration in Integrations Launchpad.

    Before you begin

    Role required: sys_admin

    About this task

    This procedure creates a JWT token for ITOM Cloud Services, which enables HLA to authenticate incoming log data from external sources via ITOM Gateway. For more information, see MID-less log streaming via ITOM Gateway in Health Log Analytics.

    Procedure

    1. In a terminal or PowerShell session, generate a private key, certificate, and keystore.
      Use the following commands:
      # Generate the private key 
      openssl genrsa -out private.key 2048 
      
      # Create the certificate (metadata prompts are optional) 
      openssl req -new -x509 -key private.key -out public_key.cer -days 9125 -sha256 
      
      # Create the keystore 
      openssl pkcs12 -export -in public_key.cer -inkey private.key -out my_keystore.p12 -name my_keystore 

      These commands produce two output files used in later steps: my_keystore.p12 and public_key.cer.

    2. On the ServiceNow instance, create a certificate record that stores the keystore.
      1. Navigate to All > System Definition > Certificates.
      2. Select New to create a record.
      3. Fill in the required fields.
      4. Set Type to Java Key Store.
      5. In the Key store password field, enter the keystore password generated in step 1.
      6. Attach the my_keystore.p12 file created in step 1.
      7. Select Submit.
      Note:
      • If you encounter keystore password errors, re-enter the password carefully and use the Validate Keystore option on the certificate record to confirm it is correct.
      • If files are not attaching, confirm that both my_keystore.p12 and public_key.cer are attached to their respective records.
    3. Create a JWT Key that links the signing credentials to the certificate.
      1. Navigate to All > System OAuth > JWT Keys.
      2. Select New to create a record.
      3. Fill in the Name field.
      4. Set Signing Keystore to the certificate record created in step 2.
      5. In the Signing Key field, enter the keystore password generated in step 1.
      6. Select Submit.
    4. Create a JWT Provider that defines how tokens are generated.
      1. Navigate to All > System OAuth > JWT Providers.
      2. Select New to create a record.
      3. Fill in the Name field.
      4. Set Signing Configuration to the JWT Key created in step 3.
      5. Set Expiry Interval (sec) to 3600.
      6. Select Submit.
    5. Create an ICS JWT Config record that completes the connection between the JWT Provider and HLA.
      1. Navigate to All > ITOM Cloud Services > ICS JWT Config.
      2. Select New to create a record.
      3. Fill in the Name field.
      4. Set JWT Provider to the JWT Provider created in step 4.
      5. Attach the my_keystore.p12 file created in step 1.
        Note:
        This record requires its own copy of the my_keystore.p12 file.
      6. Select Submit.

    Result

    The JWT provider and token are configured, enabling Health Log Analytics to authenticate incoming log data from external sources via ITOM Gateway.

    What to do next

    Set up log streaming via ITOM Gateway for Health Log Analytics.