Generate a SHA-1 thumbprint

task brazil Updated Sep 10, 2026 1 min read generate-sha-1-thumbprint.md
Raw file servicenow.com

Generate an SHA-1 thumbprint using the JWT provider's sys_id, the Java Key Store (JKS) certificate's sys_id, and the JKS certificate's alias to the GraphCertificateOAuthTemplate script.

Before you begin

Role required: admin

Procedure

  1. Navigate to All > System Definition > Scripts-Background.

  2. Paste the following script to generate the SHA-1 thumbprint value.

    JavaScript
    var certId = "<sys_id of the certificate record>";​
    var certAlias = "<alias name for the certificate>";​
    var gce = new GlideCertificateEncryption();​
    var thumbprint = gce.getThumbPrintFromKeyStore(certId, certAlias,"SHA-1");​
    gs.log(thumbprint);​
  3. Select Run script.

What to do next

Create an OAuth API script

Parent Topic:Configure client credential flow for SMTP OAuth2 using certificate-based authentication

Search documentation
Search document titles and file paths on the brazil branch