Create Key Pair

Creates a new key pair in Artifactory or replaces an existing pair.

Since: 7.6.0

Notes: Requires Artifactory Pro

You need to add the --data-binary flag to the call when the keys are provided as part of the JSON payload.

Security: Requires an admin user

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Key pair definition with pair name, type, alias, and public/private keys.

string
required

The name of the key pair (mandatory)

string
enum
required

The type of key pair (mandatory)

Allowed:
string
required

The alias for the key pair (mandatory)

string
required

The private key in PEM format (mandatory)

string
required

The public key in PEM format (mandatory)

string

The passphrase for the private key

string

Vault key identifier

vaultPublicKey
object

Vault public key configuration

Responses

Language
Credentials
:
URL
LoadingLoading…
Response
Choose an example:
application/json