{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":41932,"path":"platform-security/use-sa-signing-tool.md","title":"Using the Signing Tool","bundle":null,"doc_type":null,"release":"australia","body":"\n# Using the Signing Tool\n\nLearn how to use the Signing Tool to sign supported records in ServiceNow applications.\n\n## Before you begin\n\nRole required: admin\n\nTo perform these steps, you must have the following:\n\n-   A ServiceNow application that has records to be signed.\n-   A private key for signing records.\n-   The `signRecords.sh` script in your local environment, with execute permission.\n\n    **Important:** The `signRecords.sh` script is included as part of the signing-tool jar file, which you must request from [ServiceNow customer support](https://support.servicenow.com/).\n\n\n## Procedure\n\n1.  In your local environment, navigate to the directory containing the `signRecords.sh` script.\n\n2.  Use the following command format to sign your records:\n\n    ```\n    ./signRecords.sh -d [Path to the root directory of the ServiceNow Application to Sign] -f [Path to the Keystore file]\n    ```\n\n    For example:\n\n    ```\n    ./signRecords.sh -d /users/abc/ServiceNow-App-1 -f /users/abc/codesigning.p12\n    ```\n\n3.  If prompted, enter the password for the keystore.\n\n    Press Enter if there’s no password.\n\n4.  Review the output to confirm a successful signing.\n\n    ```\n    Sep 26, 2022 2:41:09 PM com.snc.java.commands.ACommand start\n    INFO: CODESIGN: executing codesigning...\n    Sep 26, 2022 2:41:09 PM com.snc.core.codesigning.CodeSignerSupplier get\n    INFO: CODESIGN: signing record for documentId: 65e811327702111057416efe7c5a994f\n    Sep 26, 2022 2:41:11 PM com.snc.java.commands.ACommand start\n    INFO: CODESIGN: codesigning successfully completed!\n    \n    ```\n\n    In the preceding output example, the Signing Tool used the provided keystore file to sign the record. You can also see that:\n\n    -   The script found a supported record `65e811327702111057416efe7c5a994f` and signed it.\n    -   In the ServiceNow-App-1 directory, two records created: `sys_certificate.xml` and `sn_kmf_record_signature.xml`.\n5.  Import the updated application back into your instance by applying remote changes in Studio.\n\n    For more information, see .\n\n\n"}}