I am using pass to manage my passwords. It uses my GPG key to encrypt.
My key recently expired and I created a new one.
pass
will no longer create new passwords since my old key expired.
I can decrypt existing passwords. It uses the old ID 3D1B47D3
as when decrypting I see gpg: Note: secret key 3D1B47D3 expired at Sun 02 Jul 2017 16:36:45 BST
.
3D1B47D3
is my old key id, 1F7CCC88
is my new key ID.
Therefore I need to re-encrypt ~/.password-store
using my new key. The docs say using pass init 1F7CCC88
should do so.
However I get the error:
gpg: [stdin]: encryption failed: Unusable public key
gpg: Note: secret key 3D1B47D3 expired at Sun 02 Jul 2017 16:36:45 BST`.
The error is repeated for every password.
~/.password-store/.gpg-id
contains my new key ID since running init
.
I can encrypt files manually using gpg --encrypt filename
using my new key.
Note my keys and sub-keys all have an expire date in the future.
pub 4096R/1F7CCC88 2016-07-02 [expires: 2018-07-28]
uid Kris Leech <kris.leech@gmail.com>
sub 4096R/3D1B47D3 2016-07-02 [expires: 2018-07-28]
sub 2048R/E77481E9 2016-07-28 [expires: 2018-07-28]
pass
using my new key.