Gpg

gpg: 沒有找到有效的 OpenPGP 數據

  • October 2, 2019

我試圖理解以下兩個伺服器故障文章:

就我而言,這就是我所做的:

$ wget http://www.chronox.de/libkcapi/libkcapi-1.1.5.tar.xz
$ wget http://www.chronox.de/libkcapi/libkcapi-1.1.5.tar.xz.asc
$ gpg libkcapi-1.1.5.tar.xz.asc
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: assuming signed data in 'libkcapi-1.1.5.tar.xz'
gpg: Signature made Wed 31 Jul 2019 10:01:53 AM CEST
gpg:                using RSA key 3BCC43D4D2C87D1784B69EE4421EE936326AC15B
gpg: Can't check signature: No public key
$ gpg --recv-keys  3BCC43D4D2C87D1784B69EE4421EE936326AC15B
gpg: key 421EE936326AC15B: new key but contains no user ID - skipped
gpg: Total number processed: 1
gpg:           w/o user IDs: 1

看來這個密鑰有問題,所以我無法驗證 tarball,仍然是同樣的問題:

$ gpg  libkcapi-1.1.5.tar.xz.asc
gpg: WARNING: no command supplied.  Trying to guess what you mean ...
gpg: assuming signed data in 'libkcapi-1.1.5.tar.xz'
gpg: Signature made Wed 31 Jul 2019 10:01:53 AM CEST
gpg:                using RSA key 3BCC43D4D2C87D1784B69EE4421EE936326AC15B
gpg: Can't check signature: No public key

我錯過了什麼?或者這個鍵有什麼特別之處:

$ gpg --keyid-format long --show-key libkcapi-1.1.5.tar.xz.asc
gpg: no valid OpenPGP data found.

更新這裡是我的伺服器:

$ gpg -vv --receive-keys 3BCC43D4D2C87D1784B69EE4421EE936326AC15B
gpg: data source: https://keys.openpgp.org:443

什麼應該是一個好的/可靠的伺服器呢?


更新2:

$ gpg --version
gpg (GnuPG) 2.2.12
libgcrypt 1.8.4
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Home: /home/mathieu/.gnupg
Supported algorithms:
Pubkey: RSA, ELG, DSA, ECDH, ECDSA, EDDSA
Cipher: IDEA, 3DES, CAST5, BLOWFISH, AES, AES192, AES256, TWOFISH,
       CAMELLIA128, CAMELLIA192, CAMELLIA256
Hash: SHA1, RIPEMD160, SHA256, SHA384, SHA512, SHA224
Compression: Uncompressed, ZIP, ZLIB, BZIP2

你有可能指向一個壞的密鑰伺服器?

我得到:

○ → gpg --recv-keys 3BCC43D4D2C87D1784B69EE4421EE936326AC15B
gpg: key 421EE936326AC15B: public key "Stephan Mueller &lt;sm@eperm.de&gt;" imported
gpg: Total number processed: 1
gpg:               imported: 1

引用自:https://serverfault.com/questions/986531