Skip to main content

Creating an SSH Key (Authentication to GIT)

Checkmarx CxSAST Git integration supports SSH asymmetric encryption key pairs created via OpenSSH and other utilities, but not via Putty.

To create an SSH Key using OpenSSH that is included in the default git client installation:

1. Open Git Bash

6436185099.png

2. In order to know where Git Bash will create your SSH Key, enter Echo $HOME and press <Enter>.

6436185102.png

3. Enter ssh-keygen -t rsa -b 4096 -C <your_email@example.com> and press <Enter>.

4. Press <Enter> for each concurrent question, if the key already exists, press <y> to overwrite it. Do not set a passphrase.

6436185105.png

5. Navigate to your home folder, for example Z:\ drive.

6436185108.png

The home folder includes a folder called ssh, which contains the following files:

  • id_rsa without extension. It is used when pasting the SSH Key into Checkmarx GitHub integration settings.

  • id_rsa.pub is added to the GitHub account, or any other GIT based system.