Create a JKS file

task australia Updated Sep 10, 2026 1 min read create-a-jks-file.md
Raw file servicenow.com

Generate a Java KeyStore (JKS) file for OAuth authentication setup. This process involves extracting the private key from a credentials JSON file and converting it through PEM format to create the required JKS file.

Before you begin

Role required: admin

This task requires a credentials JSON file from the Card Data Security tokenizer service. See Initial setup for Vault schema, Connections and Service Account for Card data security (KB2830577) for more information.

Procedure

  1. Create a blank file in a text editor.

  2. From the credentials JSON file, copy the privateKey value into the blank file.

  3. Replace the \n values with new line characters.

  4. Save the file with the extension .pem.

  5. Convert the .pem file to a JKS file.

    When converting the file, you will provide the key store password and the key alias—make a note of these.

Result

A JKS file is generated for use in your ServiceNow instance.

What to do next

Create an X.509 Certificate.

Keywords create jks filejava keystorejks file generationgenerate jksconvert pem to jksprivate key extractionoauth authentication setuppem filecredentials json
Search documentation
Search document titles and file paths on the australia branch