Step 1: Generate an RSA Key Pair
Generate an RSA Key Pair. For more information, see Build a Public and Private RSA Key.
Note
When generating RSA private keys for use with the Terraform
artifactory_keypair
resource, include the-traditional
flag during key generation. Use the command:openssl genrsa -traditional -out private-key.pem 2048
This ensures the private key is properly formatted and prevents the error:
Error: RSA private key is of the wrong type.
Step 2: Upload the RSA Pair Key
In the JFrog Platform UI, go to Administration module under Artifactory | Security | RSA Key Pairs and click Add New Key Pair.
Enter the RSA parameters generated when creating the RSA Key Pair.
Click Save.