Generate RSA Keys

The Live Assist integration requires a private and a public RSA key for secure communication using the SSH protocol. The private key is used to generate digital signatures. The public key is used to verify digital signatures.

Generate Keys Using Shell Script JWTRS256

  1. Navigate to GitHub and download the zip file to your local machine. Closed

    Download from GitHub

  2. Navigate to your local directory where you downloaded the zip file and extract the zip file to the local folder.

    (In our example, we created a new folder named "Keys" on the local drive.) . Closed

    Download from Github

  3. The script should now be extracted to the folder on your local drive. Closed

    Local file downloaded from Github

    To simplify the following steps, we renamed the long folder name to "Extract".

    Local file downloaded from Github

    The extracted jwtRS256.sh script is located in the "Extract" folder.

    Script from Github

  4. Open a Command Prompt and navigate to directory where the script file was extracted and hit Enter. Closed

    (In our example, the path is cd Keys\Extract)

    Command prompt

  5. At the directory in the command window, type the following and hit Enter. Closed

    ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key

    Command prompt - passphrase

  6. Leave the passphrase empty and hit Enter.

    Hit Enter again to accept the empty passphrase. Closed

    Command prompt - passphrase again

  7. The script executes and generates 2 files in your local folder: Closed

    • Private key: jwtRS256.key
    • Public key: jwtRS256.key.pub

    Command prompt - keys

    Keys

  8. Open the jwtRS256.key file of type KEY File in Notepad. This is the RSA private key.

    1. Delete the first line (“-----BEGIN RSA PRIVATE KEY-----“). Closed

      Keys folder - Private key

    2. Delete the last line (“-----END RSA PRIVATE KEY-----“).

    3. If ‘Word Wrap’ is enabled in Notepad, disable it by selecting Format > [clear] Word Wrap.

    4. Carefully remove all spaces between the lines.

    5. Copy the private key to clipboard.

  9. Open jwtRS256.key.pub file of type Microsoft Publisher Document in Notepad. This is the RSA public key.

    1. Delete the text ssh-rsa and the space before the public key. Closed

      Keys folder - Public key

    2. Delete the tail texts (like “ \user@computername”) and the space before the text.

    3. Copy the public key to clipboard.

Important: Live Assist only supports RS256 signed JWTs.

 

The Live Assist integration requires a private and a public RSA key for secure communication using the SSH protocol. The private key is used to generate digital signatures. The public key is used to verify digital signatures.

The following steps describe how to generate the keys using the ssh-keygen utility on a Windows 10 computer.

  1. Open a Command Prompt. Closed

    Command Prompt

  2. Navigate to any directory. (In our example, we created a new folder named 'Keys' on the local drive.) Closed

    Keys folder

  3. Run the following command:

    ssh-keygen -t rsa -b 4096 -m PEM -f jwtRS256.key

  4. At the Enter passphrase (empty for no passphrase): prompt, press Enter. Closed

    Keys folder - confirm password

  5. At the Enter same passphrase again: prompt, press Enter again. Closed

    Keys folder

  6. Once command runs successfully, public and private RSA keys are generated in the selected directory.

    Keys folder - keys done

  7. Open the jwtRS256.key file of type KEY File (.key” in Notepad. This is the RSA private key.

    1. Delete the first line (“-----BEGIN RSA PRIVATE KEY-----“) from the jwtRS256.key file.

      Keys folder - Private key

    2. Delete the last line (“-----END RSA PRIVATE KEY-----“) from the jwtRS256.key file.

    3. If ‘Word Wrap’ is enabled in Notepad, disable it by selecting Format > [clear] Word Wrap.

    4. Carefully remove all the line spaces between the lines.

    5. Copy the private key to clipboard.

  8. Open jwtRS256.key file of type Microsoft Publisher Document (.pub) in Notepad. This is the RSA public key.

    1. Delete the text ssh-rsa and the space before the public key from the jwtRS256.key.pub file.

      Keys folder - Public key

    2. Delete the tail texts (like “ \user@computername”) and the space before the text from the “jwtRS256.key.pub” file.

    3. Copy the public key to clipboard.