Page MenuHome GnuPG

revocation request fails: Unknown system error
Closed, ResolvedPublic

Description

C:\Users\Johannes>gpg --output revoke.asc --gen-revoke
"Y:\OpenPGP\kingma_at_bluewin_ch.gpg"
gpg: secret key "Y:\\OpenPGP\\kingma_at_bluewin_ch.gpg" not found: Unknown
system error

The error needs to be a bit more explicit than this.

Details

Version
gpg (GnuPG) 2.0.27 (Gpg4win 2.2.4)

Event Timeline

theking2 set Version to gpg (GnuPG) 2.0.27 (Gpg4win 2.2.4).May 14 2015, 8:50 PM
theking2 added a subscriber: theking2.
theking2 renamed this task from revocation request failes to revocation request fails: Unknown system error.May 14 2015, 8:54 PM
werner lowered the priority of this task from Normal to Low.May 15 2015, 2:12 PM

The error has change in 2.1 to:

  gpg: secret key "foo.gpg" not found: Not found

(i.e., it doesn't say Unknown system error any more.)

The fundamental issue is that the argument to --gen-revoke is not a filename,
but a user id (e.g., the key id). I've accordingly change the error message in
46e128d as follows:

$ gpg2 --output revoke.asc --gen-revoke foo.gpg

gpg: no secret key matches the search term "foo.gpg"
neal claimed this task.