# GPG key fails to import for filebeat on Centos9

**URL:** <https://discuss.elastic.co/t/gpg-key-fails-to-import-for-filebeat-on-centos9/312946>\
**Category:** Beats\
**Tags:** filebeat\
**Created:** [August 25, 2022, 4:28pm UTC](https://discuss.elastic.co/t/gpg-key-fails-to-import-for-filebeat-on-centos9/312946 "2022-08-25T16:28:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbradley](https://avatars.discourse-cdn.com/v4/letter/s/8e8cbc/32.png) [@sbradley](https://discuss.elastic.co/u/sbradley)\
**Post date:** [August 25, 2022, 4:28pm UTC](https://discuss.elastic.co/t/gpg-key-fails-to-import-for-filebeat-on-centos9/312946/1 "2022-08-25T16:28:50Z")

</div>

Following the instructions here [Repositories for APT and YUM | Filebeat Reference [8.4] | Elastic](https://www.elastic.co/guide/en/beats/filebeat/current/setup-repositories.html)

I attempt to import the GPG key and receive the following error:

error: [https://packages.elastic.co/GPG-KEY-elasticsearch:](https://packages.elastic.co/GPG-KEY-elasticsearch:) key 1 import failed.

Several similar issue reports indicate this may be related to the key being SHA-1 and you can't use that on Cent9 anymore? If so, what do I need to do?

I am trying to get filebeat setup as a background process, but so far, none of the instructions I have found seem to work.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 22, 2022, 6:29pm UTC](https://discuss.elastic.co/t/gpg-key-fails-to-import-for-filebeat-on-centos9/312946/2 "2022-09-22T18:29:16Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
