Generate a SHA-1 thumbprint

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • 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.

    Vorbereitungen

    Role required: admin

    Prozedur

    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.

    Nächste Maßnahme

    Create an OAuth API script