deleting secret key not implemented

Peter Humphreys eagleeyes426 at yahoo.com
Tue Dec 31 10:21:40 CET 2013


Hi there,

I saw this response from Werner regarding this in 2.1 beta, but I don't
understand?

****
In 2.1 the secret keys are manage by gpg-agent and in theory gpg should
not care about them.  However, we also have import and export commands
which tell the agent what to do with the secret keys (i.e. import or
export).  A delete command is a bit more difficult regarding the UI
because it is possible that gpgme uses the same secret key for an X.509
certificate - it would then also be silently deleted.


Salam-Shalom,

   Werner
****

I know it's not implemented because when trying to delete a test key I
get:

./g10/gpg2 --delete-secret-keys testing
@GPG@ (@GNUPG@) 2.1.0-beta272; Copyright (C) 2012 Free Software
Foundation, Inc.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

gpg: NOTE: THIS IS A DEVELOPMENT VERSION!
gpg: It is only intended for test purposes and should NOT be
gpg: used in a production environment or with production keys!

sec  2048R/FF625EC7 2013-12-31 testing

Delete this key from the keyring? (y/N) y
This is a secret key! - really delete? (y/N) y
gpg: deleting secret key not implemented
gpg: testing: delete key failed: Not implemented


But how do I go about deleting it if I can't do it through gpg2? Can I
do it manually somehow?

Regards,
Peter





More information about the Gnupg-users mailing list