Generate a SHA-1 thumbprint
task brazil Updated Sep 10, 2026 1 min read generate-thumbprint.md
Generate a SHA-1 thumbprint using the JWT provider's sys_id and JKS certificate's sys_id and certificate's alias to be added 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 an OAuth profile to use certificates for authentication with Microsoft Azure
48 lines · 1.8 KB
---
title: Generate a SHA-1 thumbprint
description: Generate a SHA-1 thumbprint using the JWT provider's sys\_id and JKS certificate's sys\_id and certificate's alias to be added to the GraphCertificateOAuthTemplate script.
locale: en-US
canonical_url: https://www.servicenow.com/docs/r/platform-administration/generate-thumbprint.html
release: brazil
topic_type: task
last_updated: "2026-09-10"
reading_time_minutes: 1
breadcrumb: [OAuth profile to use certificates, Read email using Microsoft Graph, Read or send emails using Microsoft Graph, Advanced email setup, Configure, Email Administration, Notifications, Configure core features, Administer the ServiceNow AI Platform]
---
# Generate a SHA-1 thumbprint
Generate a SHA-1 thumbprint using the JWT provider's sys\_id and JKS certificate's sys\_id and certificate's alias to be added 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/brazil/markdown/platform-administration/oauth-api-script.md)
**Parent Topic:**[Configure an OAuth profile to use certificates for authentication with Microsoft Azure](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/brazil/markdown/platform-administration/configure-oauth-profile-using-certificates.md)
| title | Generate a SHA-1 thumbprint |
| description | Generate a SHA-1 thumbprint using the JWT provider's sys\_id and JKS certificate's sys\_id and certificate's alias to be added to the GraphCertificateOAuthTemplate script. |
| locale | en-US |
| canonical_url | https://www.servicenow.com/docs/r/platform-administration/generate-thumbprint.html |
| release | brazil |
| topic_type | task |
| last_updated | 2026-09-10 |
| reading_time_minutes | 1 |
| breadcrumb | OAuth profile to use certificatesRead email using Microsoft GraphRead or send emails using Microsoft GraphAdvanced email setupConfigureEmail AdministrationNotificationsConfigure core featuresAdminister the ServiceNow AI Platform |