Generate a SHA-1 thumbprint
task australia Updated Sep 10, 2026 1 min read generate-sha-1-thumbprint.md
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
-
Navigate to All > System Definition > Scripts-Background.
-
Paste the following script to generate the SHA-1 thumbprint value.
JavaScriptvar 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); -
Select Run script.
What to do next
Parent Topic:Configure client credential flow for SMTP OAuth2 using certificate-based authentication
48 lines · 1.9 KB
---
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-09-10"
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 = "<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](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)
| 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-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | SMTP OAuth2 to use certificatesSend email using client credential flowAdvanced email setupConfigureEmail AdministrationNotificationsConfigure core featuresAdminister the ServiceNow AI Platform |