为什么密钥更新后“pass”停止工作?

为什么密钥更新后“pass”停止工作?

谁能告诉我为什么我的经过密码管理器停止工作?据我所知,在我续订过期密钥之前完全没问题。访问旧密码仍然可以正常工作,但我无法再创建新密码。

$ pass generate foo
gpg: [stdin]: encryption failed: No public key
Password encryption aborted.

这是 的输出gpg --list-keys

pub   rsa4096 2019-05-12 [SC] [expires: 2022-05-11]
      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
      uid           [ultimate] XXXXXXXXXX  <[email protected]>
      sub   rsa4096 2019-05-12 [E] [expires: 2020-05-25]

gpg --version


gpg (GnuPG) 2.2.20
libgcrypt 1.8.5
Copyright (C) 2020 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.

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


pass我从去年开始使用,当时我运行的是 Linux Mint 19。我现在运行的是 Ubuntu Studio 19.10,使用相同的/home分区,这是值得的。

答案1

谢谢https://unix.stackexchange.com/a/412363/412280,我发现其中~/.password-store/.gpg-id只包含一个拙劣的密码条目的名称。我更换了 ~/.password-store/.gpg-id我真正的 gpg-id,一切又恢复正常了。

相关内容