Description: Upload GPG key pair to JFrog Distribution. This key pair will be used to sign Release Bundles.
Note: Deprecated from Distribution version 2.4
Since: 1.0
Security: Admin only
Usage: PUT /distribution/api/v1/keys/gpg
Request headers: N/A
Consumes: application/json
cURL Example
$ curl -u user:password -H "Accept: application/json" -H "Content-Type: application/json" -X PUT "http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1/keys/gpg" -T gpg.json
gpg.json
{
"public_key": "-----BEGIN PGP PUBLIC KEY BLOCK-----
....
-----END PGP PUBLIC KEY BLOCK-----",
"private_key": "-----BEGIN PGP PRIVATE KEY BLOCK-----
....
-----END PGP PRIVATE KEY BLOCK-----"
}Response status codes:
200 - Keys were successfully set.
Response headers: N/A
Produces: application/json
Response
{
"status_code”: 201,
"message": "Set GPG public & private key"
}