Why am I seen 404 not found when adding https://artifacts.elastic.co/packages/6.x/yum/ as remote rpm repository?

Batel Tova
2018-11-14 14:13

The “Test” button in Artifactory is just the response of an HTTP HEAD request to the URL. Following the instructed here, we need to download the Elastic-Search public gpg-key in order to add this URL as a remote repository. 

To download the GPG file please run the following command:

$ curl -O https://packages.elastic.co/GPG-KEY-elasticsearch

Then we can easily upload it to a generic local repository in our Artifactory server, afterward we need to add the gpgkey URL pointing to the GPG key file that can be found in the generic repository as the following sample of artifactory.repo file:






#Optional - if you have GPG signing keys installed, use the below flags to verify the repository metadata signature: