FG

How to force gpg2 to use expired key?

Fresh3 days ago
Mar 15, 202611216 views
Confidence Score0%
0%

Problem

How to encrypt? There are no updates for the key available from keyservers. Messages should be seen if user still has that expired key or not seen at all. Is there some option that will allow to do this without of changing the source code of GPG?

Error Output

$ gpg -ear XXXXXXX
gpg: XXXXXXXX: skipped: unusable public key

$ gpg --debug-ignore-expiration -ear XXXXXXXX
gpg: Invalid option "--debug-ignore-exp…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: How to force gpg2 to use expired key?

Low Risk

Use the option: I would prefer an option that would force encryption to an expired key while also recording the correct time (especially when signing).

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment