> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Generate Keys

> Create RSA public/private key pairs for signing JWT access token requests.

Upload your public key to SightX and keep your private key secure. SightX uses the key pair to validate JWT signatures when you request API access tokens.

## Linux

Open a terminal and create a `.ssh` directory if needed:

```bash theme={null}
mkdir /home/username/.ssh
cd /home/username/.ssh
```

Generate the key pair:

```bash theme={null}
ssh-keygen -t rsa -m pem
```

Press Enter to accept the default filename (`id_rsa`), then optionally set a passphrase.

<img src="https://mintcdn.com/repdata/GgsNebtEZm-Uk8JR/public/sightx/linux-terminal.1a8eb40b.png?fit=max&auto=format&n=GgsNebtEZm-Uk8JR&q=85&s=49fecaf5472e2dfdfc29b93e39a3d91a" alt="Linux terminal" width="385" height="251" data-path="public/sightx/linux-terminal.1a8eb40b.png" />

## Windows (PuTTY)

1. Download PuTTYgen from the [PuTTY download page](https://www.putty.org/).
2. Open PuTTYgen and click **Generate**.
3. Save the public key and export the private key in PEM format.

<img src="https://mintcdn.com/repdata/GgsNebtEZm-Uk8JR/public/sightx/putty-download.0c79896a.png?fit=max&auto=format&n=GgsNebtEZm-Uk8JR&q=85&s=77fdeaeadc14a02b1c27a15dc2aa8d27" alt="PuTTY download page" width="547" height="92" data-path="public/sightx/putty-download.0c79896a.png" />

<img src="https://mintcdn.com/repdata/GgsNebtEZm-Uk8JR/public/sightx/putty-app-1.18ac87be.png?fit=max&auto=format&n=GgsNebtEZm-Uk8JR&q=85&s=f763ffcfaee23d6e546b41618b76a3b1" alt="PuTTYgen generate key" width="434" height="430" data-path="public/sightx/putty-app-1.18ac87be.png" />

## macOS

Open Terminal and run:

```bash theme={null}
ssh-keygen -t rsa -m pem
```

<img src="https://mintcdn.com/repdata/GgsNebtEZm-Uk8JR/public/sightx/mac-terminal.7418065b.png?fit=max&auto=format&n=GgsNebtEZm-Uk8JR&q=85&s=4711654c343ee815924a9e2faffa174f" alt="macOS terminal" width="354" height="226" data-path="public/sightx/mac-terminal.7418065b.png" />

Export the private key in PEM format when prompted.

<img src="https://mintcdn.com/repdata/GgsNebtEZm-Uk8JR/public/sightx/private-key-export.24d24d8c.png?fit=max&auto=format&n=GgsNebtEZm-Uk8JR&q=85&s=b1dd5284ef7fb0c8a3e633fe7966af11" alt="Export private key" width="602" height="471" data-path="public/sightx/private-key-export.24d24d8c.png" />

## Next steps

1. Upload your public key to SightX.
2. Receive your client ID by email.
3. Configure JWT claims on the [JWT Data](/sightx/guides/03-jwt-data) page.
4. Request an access token using the [authentication endpoint](/sightx/endpoints/post-v1-m2m-token).
