How to use GPG Keys if the upstream URL is not accessible from the server?

ARTIFACTORY: How to configure GPG Keys with Artifactory Remote Repositories

AuthorFullName__c
Shisiya Sebastian
articleNumber
000005583
ft:sourceType
Salesforce
FirstPublishedDate
2023-02-19T10:14:13Z
lastModifiedDate
2023-02-19
VersionNumber
1
If the outbound access is allowed only to the Artifactory from the server, you can download the key from the provider and upload it to your Artifactory Generic local repository and use that path in your yum repo configuration file.

Example for yum:
rpm --import  http://username:password@artifactory_host/artifactory/mypubkeys/GPG-KEY-elasticsearch.key
Here, mypubkeys is a Generic local repository I created in the Artifactory.

Example for Apt:
curl http://username:password@artifactory_host/artifactory/mypubkeys/GPG-KEY-elasticsearch.key|gpg --dearmor >/usr/share/keyrings/elasticsearch-keyring.gpg



Ref: https://www.jfrog.com/confluence/display/JFROG/RPM+Repositories#RPMRepositories-RemoteRepositories
https://www.elastic.co/guide/en/elasticsearch/reference/8.6/deb.html
https://www.jfrog.com/confluence/display/JFROG/Debian+Repositories