Update Key Pair

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Updates a key pair with new key pairs.

Since: 7.19

Security: Requires a valid admin user

Usage: PUT /api/security/keypair

Sample Usage:

curl -X PUT -uadmin:password "http://localhost:8080/artifactory/api/security/keypair" --header 'Content-Type: application/json' --data '@json-input'

Sample Response:

{
   "alias":"alias1",
   "pairName":"name1",
  
   "publicKey":"-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkq……..0QIDAQAB\n-----END PUBLIC KEY-----",
   "pairType":"GPG"
}