--- title: Generate a SHA-1 thumbprint description: 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. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-administration/generate-sha-1-thumbprint.html release: australia topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [SMTP OAuth2 to use certificates, Send email using client credential flow, Advanced email setup, Configure, Email Administration, Notifications, Configure core features, Administer the ServiceNow AI Platform] --- # Generate a SHA-1 thumbprint 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. ``` var certId = "";​ var certAlias = "";​ 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](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/create-oauth-api-script-cred-flow.md) **Parent Topic:**[Configure client credential flow for SMTP OAuth2 using certificate-based authentication](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-administration/config-credential-flow-certificate.md)