Description: Returns the public GPG key set in Distribution.
Note: The private key field will be displayed in the JSON response format, only if the private key exists in the DB for that public key.
When GPG public key was not uploaded in the first place, the following message is returned: "No public GPG key exists in Distribution".
Since: 2.3.0
Security: Authenticated users only. Users must have read permissions for the Release Bundle.
Usage: GET /api/v1/keys/gpg
Consumes: application/json
cURL Example
$ curl -u user:password -X GET "http://ARTIFACTORY_SERVER_HOSTNAME:8082/distribution/api/v1/keys/gpg"
Response:
Response
{ "public_key": "<public gpg key>", "private_key": "****" }