Hello,
checking the keys stored on Nitrokey with command gpg --card-status
I can see that any subkey has expired:
sec# rsa4096/0x8891383EF89D9F5A erzeugt: 2020-02-25 verfällt: niemals
ssb> rsa4096/0x82F7E075D0B3AB32 erzeugt: 2020-02-25 verfällt: 2021-02-24
Kartennummer:0005 00XXXXXX
ssb> rsa4096/0x27886A4F0A4D017E erzeugt: 2020-02-25 verfällt: 2021-02-24
Kartennummer:0005 00XXXXXX
ssb> rsa4096/0x34DD0A449BDDB937 erzeugt: 2020-02-25 verfällt: 2021-02-24
Kartennummer:0005 00XXXXXX
If I try to change expire date I get this error message:
gpg: signing failed: No secret key
gpg: make_keysig_packet failed: No secret key
I tried it using this procedure:
-
gpg --expert --edit-key 0x8891383EF89D9F5A
-
Select relevant subkey
-
expire
-
1y
My understanding is that I cannot modify expired subkeys on the security card directly. Instead I must create new subkeys and export these keys to the security card.
Can you please advise how to proceed correctly?
THX