Generate and Upload RSA Key Pair

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

This topic describes generating and uploading an RSA key pair to Artifactory. RSA keys are used for secure authentication when interacting with repositories, ensuring encrypted communication between clients and the artifactory.

Generate an RSA key pair, upload the public key to Artifactory, and configure it to streamline your development and deployment workflows.

To use the mix client with Artifactory, you must authenticate the client using an RSA key.

Understanding RSA Key Pairs in Hex Package Management

RSAKeyPairs.png

Hex uses Protobuf encoding for efficient binary sizing and performance. To download Hex packages, you must provide a public key in your project. This key allows the Mix client to validate the content from the registry and is used to encrypt and decrypt the data.

When using Artifactory as a middleman for Hex packages, you need two sets of RSA key pairs:

  • External Keys: These keys are required to access the remote Hex registry (public, private, or self-hosted hex server). Each Hex registry has its own public and private key pair. You must enter the public key while creating the remote repository in Artifactory.

  • Internal Keys: These keys allow the mix client to access Artifactory, which acts as a Hex server. You can set up the internal keys in Artifactory under Security | Keys Management | RSA Key Pair. Assign this key pair to the remote repository.

By using two sets of keys, we ensure secure communication between your project, Artifactory, and the external Hex registry.

To learn how to generate and upload an RSA key pair, refer to the Setting Up RSA Keys Pairs

To learn more, refer to the RSA Key Pairs.

Note

Once completed, proceed to Create Hex Repository.