Kathy Lyons
12/18/2023, 12:33 PMcurl -L <https://pkg.osquery.io/deb/GPG> | gpg --no-default-keyring --gnupg-ring:/usr/share/keyrings/osuery.gpg --import & chmod 644 /usr/share/keyrings/osquery.gpg
I receive the error: gpg: no valid OpenPGP data found gpg:Total number processed: 0
and the osquery.gpg file does not exist.
What is wrong with my curl command or how else can i install the osquery gpg key?Stefano Bonicatti
12/18/2023, 12:50 PM<https://pkg.osquery.io/deb/pubkey.gpg>
, also in the --gnupg-ring
argument osuery.gpg
-> osquery.gpg
.
I'm also not sure about that --gnupg-ring
option, I don't have it, should be --keyring <path>
?Kathy Lyons
12/18/2023, 1:26 PMcurl -L <https://pkg.osquery.io/deb/pubkey.gpg> | gpg --no-default-keyring --keyring /usr/share/keyrings/osquery.gpg && chmod 644 /usr/share/keyrings
and I get a 32 byte osquery.gpg file.
However, when I add the osquery repo, /etc/apt/sources.list.d/osquery.list with the line deb [arch=64] <https://pkg.osquery.io/deb> deb main
, and perform an apt update
, I still get the error: "The following signatures couldn't be verified because the public key is not available."
Stefano Bonicatti
12/18/2023, 1:29 PM[arch=64 signed-by=/usr/share/keyrings/osquery.gpg]
.
You might want to check at the bottom of this page: https://osquery.io/downloads/official/5.10.2
"Debian Linux"Stefano Bonicatti
12/18/2023, 1:30 PMStefano Bonicatti
12/18/2023, 1:30 PMKathy Lyons
12/18/2023, 1:39 PM"The following signatures couldn't be verified because the public key is not available."
The osquery.gpg file 32 bytes but does not have anything in it.Stefano Bonicatti
12/18/2023, 1:40 PMcurl -L <https://pkg.osquery.io/deb/pubkey.gpg>
only, what do you see?Stefano Bonicatti
12/18/2023, 1:41 PMStefano Bonicatti
12/18/2023, 1:43 PM--import
option, you should've kept that, in the full commandStefano Bonicatti
12/18/2023, 1:44 PM--import
to your full command, after --keyring <path>
Kathy Lyons
12/18/2023, 1:48 PMcurl -L <https://pkg.osquery.io/deb/pubkey.gpg> --no-default-keyring --keyring /usr/share/keyrings/osquery.gpg --import
Thank you.