# Adding Keys and CSR
source: https://developer.mastercard.com/token-requestor-identifier-api/documentation/tutorials-and-guides/add-key/index.md

If you haven't added the project keys during project creation, you can follow the steps given below to add these keys.

## Add Production Project Key - Using CSR {#add-production-project-key---using-csr}

1. To add production keys, navigate the project.
2. On the left navigation, click **Production credentials**.
3. In the upper-right corner of the screen, click **Add Production credentials** . ![Add Production credentials alert](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/csmissingprodcreds.png)
4. To add the consumer key, click **Add project key** . ![Add Production project key screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/add_proj_key_new.png)
5. Two methods are available when using a CSR. ![Set private key selection screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/use-existing-private-key.png)
   * **Uploading a CSR** - To upload a certificate signing request (CSR) generated in your system, select the **Use an existing private key** option.
     * Enter **Key alias** (A key alias is a label for specific key within a keystore.) and upload a **CSR File** . ![Upload CSR file for private key](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/sandbox-upload-csr-file.png)
     * Click **Create key**.
   * **Copying a CSR file** - To copy the CSR file, select the **Paste in a CSR file** option. ![Set private key selection screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/paste-in-csr-file.png)
     * Enter **Key alias** (A key alias is a label for specific key within a keystore.) and copy the **CSR File** . ![Paste in CSR content as private key](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/create-key-existing-csr.png)
     * Click **Create key**.
6. To Download the key information, click **Download key file**. The downloaded key file contains the Production key information.
7. To return to the project dashboard, click **Open Project** . ![Production consumer key shown on Production credentials screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/prod_cred_new.png)

## Add Production Project Key - Using OAuth1.0 {#add-production-project-key---using-oauth10}

1. To add production credentials, in the upper-right corner of the screen, click **Add Production credentials** . ![Add Production credentials alert](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/csmissingprodcreds.png)
2. Click **Add project key** . ![Add Production project key screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/add_proj_key_new.png)
3. If you are generating a new private key using OAuth1.0, select **Generate a new private key** from the list. ![Set private key selection screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/sandbox-new-private-key.png)
4. Enter **Key alias** and **Keystore password** . A key alias is a label for specific key within a keystore. Ensure that you make a note of the key alias and the keystore password as you will need this information when you send the API request to Mastercard. ![Generate CSR file for private key](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/create-project-sandbox-key.png)
5. Click **Create key**.
6. To Download the key information, click **Download key file**. The downloaded key file contains the Production key information.
7. To return to the project dashboard, click **Open Project** . ![Production consumer key shown on Production credentials screen](https://static.developer.mastercard.com/content/token-requestor-identifier-api/documentation/tutorials-and-guides/addkeys/prod_cred_new.png)

Note: It is the same process when you request for Sandbox project key.
