Set up JWT and OAuth authentication for ServiceNow Quote Experience

task australia Updated Sep 23, 2026 1 min read quote-exp-jwt-oauth-connection.md
Raw file servicenow.com

Set up system-to-system authentication between ServiceNow and the ServiceNow CPQ microservice by generating a key pair, registering an OAuth application in ServiceNow, and configuring the serviceNowJwtConnection system connection in ServiceNow CPQ Administration.

Before you begin

Role required: admin

Procedure

  1. In ServiceNow, generate a public/private key pair.

    Note: Only PKCS8 format is supported, because it is widely compatible.

  2. Import the public key into ServiceNow.

  3. Create an OAuth Application Registry to set up the OAuth endpoint for JWT authentication.

    • Set AuthScope to useraccount.
    • Set the user field to the user name. If the user name is not available, use the user ID. For detailed instructions, see KB1275215.
  4. Convert the private key to PKCS8 format so that you can add it to the ServiceNow CPQ Administration connection.

    1. Convert the JKS keystore to PKCS12 by using the following command:

      Shell
      keytool -importkeystore \  -srckeystore snclient.keystore -srcstorepass abcd1234 \  -destkeystore snclient.p12 -deststoretype PKCS12 -deststorepass abcd1234
    2. Extract the private key from the PKCS12 keystore to a PEM file by using the following command:

      Shell
      openssl pkcs12 -in snclient.p12 -nodes -nocerts -passin pass:abcd1234 -out private_key.pem
    3. Force the key to unencrypted PKCS#8 format by using the following command:

      Shell
      openssl pkcs8 -topk8 -nocrypt -in private_key.pem -out private_key_pk8.pem
    4. Print the private key to the terminal so that you can copy it by using the following command:

      Text
      cat private_key_pk8.pem
  5. In ServiceNow CPQ Administration, configure the serviceNowJwtConnection system connection to enable JWT and OAuth authentication.

    1. Navigate to CPQ Administration > Utilities > Connections.

    2. Select the serviceNowJwtConnection system connection.

    3. Ensure that the Authentication Type is set to JWT – Client Credentials Flow.

    4. Enter the connection details:

      • OAuth client ID
      • OAuth client secret
      • Token URL: <instanceurl>/oauth_token.do
      • Private key (the PKCS8 key from the previous step)
      • Key ID
      • Host: <ServiceNow_instance_URL>
      • Leave Path null.
Search documentation
Search document titles and file paths on the australia branch