Download Public Key to Hex Project Folder

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide
ft:sourceType
Paligo

This topic describes how to download the public key to your project folder to work with Hex repositories in Artifactory. It provides instructions to download the public key using curl or wget.

The Mix client requires that you host your Hex repository RSA public key in your project folder to verify the index signature.

First, generate a user token using the set me up dialog. This token will auto-populate in all relevant placeholders within the set-me-up instructions.

To configure the Mix client, follow these steps:

Copy the publickey.pem key hosted in Artifactory to your Mix project folder using the following curl or Wget commands:

Refer to View Set Me Up Instructions - Hex Repository topic to view Configure code snippets.

  • Curl

    Note

    Make sure to replace the placeholders in bold with your token, JFrog domain name, port, and JFrog repository key.

    curl -u<USER>:<TOKEN> -o publickey.pem https://<YOUR_JFROG_DOMAIN>:<PORT>/artifactory/api/security/keypair/public/repositories/<REPOSITORY_NAME>

    For example:

    curl -uadmin:cmVmdGtuOjAxOj45NTgLXlYaFVCYXZYOONaY2dRUEJioEVpNFpT -o publickey.pem https://john.jfrog.io/artifactory/api/security/keypair/public/repositories/hex-remote
  • Wget

    Note

    Make sure to replace the placeholders in bold with your token, JFrog domain name, port, and JFrog repository key.

    wget -O publickey.pem https://<USER>:<TOKEN>@<YOUR_JFROG_DOMAIN>:<PORT>/artifactory/api/security/keypair/public/repositories/<REPOSITORY_NAME>

    For example:

    wget -O publickey.pem https://admin:cmVmdGtuOjAxOj45NTgLXlYaFVCYXZYOONaY2dRUEJioEVpNFpT@john.jfrog.io/artifactory/api/security/keypair/public/repositories/hex-remote