Download Public Key to Hex Project Folder

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

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:

You can also use JFrog Set me up to copy the snippet populated with your token and environment. For more information, see Use Artifactory Set Me Up for Configuring Package Manager Clients.

  • Curl

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

    Where:

    • <USER>: Name of the repository/repository key

    • <TOKEN>: Your JPD access token

    • <JFrogPlatformURL>: URL of your JPD

    • <REPOSITORY_NAME>: Name of the repository/repository key

    For example:

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

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

    For example:

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