Using the Signing Tool
On this page
Using the Signing Tool
Learn how to use the Signing Tool to sign supported records in ServiceNow applications.
Before you begin
Role required: admin
To perform these steps, you must have the following:
-
A ServiceNow application that has records to be signed.
-
A private key for signing records.
-
The
signRecords.shscript in your local environment, with execute permission.Important: The
signRecords.shscript is included as part of the signing-tool jar file, which you must request from ServiceNow customer support.
Procedure
-
In your local environment, navigate to the directory containing the
signRecords.shscript. -
Use the following command format to sign your records:
./signRecords.sh -d [Path to the root directory of the ServiceNow Application to Sign] -f [Path to the Keystore file]
For example:
./signRecords.sh -d /users/abc/ServiceNow-App-1 -f /users/abc/codesigning.p12
-
If prompted, enter the password for the keystore.
Press Enter if there’s no password.
-
Review the output to confirm a successful signing.
Sep 26, 2022 2:41:09 PM com.snc.java.commands.ACommand start INFO: CODESIGN: executing codesigning... Sep 26, 2022 2:41:09 PM com.snc.core.codesigning.CodeSignerSupplier get INFO: CODESIGN: signing record for documentId: 65e811327702111057416efe7c5a994f Sep 26, 2022 2:41:11 PM com.snc.java.commands.ACommand start INFO: CODESIGN: codesigning successfully completed!
In the preceding output example, the Signing Tool used the provided keystore file to sign the record. You can also see that:
-
The script found a supported record
65e811327702111057416efe7c5a994fand signed it. -
In the ServiceNow-App-1 directory, two records created:
sys_certificate.xmlandsn_kmf_record_signature.xml.
-
-
Import the updated application back into your instance by applying remote changes in Studio.
For more information, see .
Keep exploring.
Find another answer, or bring this documentation into your own tools.