# GPG key retrieval failed

**URL:** <https://forums.suse.com/t/gpg-key-retrieval-failed/30550>\
**Category:** SUSE Multi Linux Manager\
**Created:** [November 14, 2017, 5:50pm UTC](https://forums.suse.com/t/gpg-key-retrieval-failed/30550 "2017-11-14T17:50:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Albert](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Albert](https://forums.suse.com/u/Albert)\
**Post date:** [November 14, 2017, 5:50pm UTC](https://forums.suse.com/t/gpg-key-retrieval-failed/30550/1 "2017-11-14T17:50:35Z")

</div>

We have SUMA 3.1.2 installed and are trying to sync a custom repo we created:

`spacecmd {SSM:0}> repo_details "GitLab SLES 12-SP2"
Repository Label: GitLab SLES 12-SP2
Repository URL: https://packages.gitlab.com/gitlab/gitlab-ee/sles/12.2/x86_64
Repository Type: yum
Repository SSL Ca Certificate: None
Repository SSL Client Certificate: None
Repository SSL Client Key: None`

[CODE]spacecmd {SSM:0}\> softwarechannel\_details gitlab-12-sp2-pool-x86\_64  
Label: gitlab-12-sp2-pool-x86\_64  
Name: GitLab-12-SP2-Pool for x86\_64  
Architecture: x86\_64  
Parent: sles12-sp2-pool-x86\_64  
Systems Subscribed: 0  
Number of Packages: 0

## Summary

GitLab SLES12-SP2 x86\_64

GPG Key: E15E78F4  
GPG Fingerprint: 1A4C 919D B987 D435 9396 38B9 1421 9A96 E15E 78F4  
GPG URL: [https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey](https://packages.gitlab.com/gitlab/gitlab-ee/gpgkey)

## Repos

GitLab SLES 12-SP2  
[/CODE]

`# spacewalk-repo-sync --channel gitlab-12-sp2-pool-x86_64
09:42:56 ======================================
09:42:56 | Channel: gitlab-12-sp2-pool-x86_64
09:42:56 ======================================
09:42:56 Sync of channel started.
09:42:58 ChannelException: GPG key retrieval failed: [Errno 14] HTTP Error 404 : https://packages-gitlab-com.s3-accelerate.amazonaws.com/7/11/sles/12.2/x86_64/repodata/repomd.xml.key?AWSAccessKeyId=AKIAJ74R7IHMTQVGFCEA&Signature=s9vWpuVMVOmjyn2vDhSl7jCZFSE%3D&Expires=1510674478
09:42:58 Total time: 0:00:01
`

Does SUMA not honour the “GPG URL” field when you create a channel? Why is it using the wrong URL for the GPG key?

---

<div class="post-metadata">

**Author:** ![Albert](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@Albert](https://forums.suse.com/u/Albert)\
**Post date:** [November 14, 2017, 7:04pm UTC](https://forums.suse.com/t/gpg-key-retrieval-failed/30550/2 "2017-11-14T19:04:55Z")

</div>

Redhat honors the “GPG URL” field only for file:// based URLs: [https://www.redhat.com/archives/spacewalk-list/2012-January/msg00202.html](https://www.redhat.com/archives/spacewalk-list/2012-January/msg00202.html). Is SUMA doing something similar? If so, what is the magic pathname where I need to deposit the GPG key for the above repo?
