Delete secret key without public key

André Ludwig andre at bluesalamand.de
Sat Mar 20 15:17:55 CET 2010


Hi!
I've got a secret key which is useless (ID AB756AEB) and I want to delete it from my keyring. This secret key has no associated public key. The problem is, that it only shows up in the gpg2 --edit-key mode after typing "toggle" followed by return. It doesn't show up on gpg2 --list-secret-keys.
I read the FAQ and found this: http://www.gnupg.org/faq.html#q4.6
So I tried out to find the long keyID for my problematic secret key. But the "--use-colons"-option doesn't really work with --edit-key after a "toggle", it only gives me my user IDs. "gpg2 --delete-secret-key AB756AEB" doesn't work either.
So how can I get the long keyID or how can I delete this secret-key?

Please add me as CC in replies to this Mail.

Thank you very much,
André


=============
shematic output:

$ gpg2 --help
gpg (GnuPG/MacGPG2) 2.0.14
libgcrypt 1.4.5
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
[...]


$ gpg2 --edit-key andre
Geheimer Schlüssel ist vorhanden.

pub  1024D/ACA3438B  erzeugt: 2003-12-05  verfällt: niemals     Aufruf: SC  
                     Vertrauen: uneingeschränkt Gültigkeit: uneingeschränkt
sub  1536g/7469868B  erzeugt: 2003-12-05  verfallen: 2010-03-08  Aufruf: E   
sub  2048g/8605C6C9  erzeugt: 2010-03-07  verfällt: 2012-03-06  Aufruf: E   
[ uneing.] (1). André Ludwig <andre at bluesalamand.de>
[widerrufen] (2)  André Ludwig <andre at klabitur.de>
[ uneing.] (3)  André Ludwig <andre-ludwig at gmx.de>
[ uneing.] (4)  André Ludwig <Ludwiga at students.uni-marburg.de>

Befehl> toggle
              
sec  1024D/ACA3438B  erzeugt: 2003-12-05  verfällt: niemals   
ssb  1536g/7469868B  erzeugt: 2003-12-05  verfällt: niemals   
ssb  2048g/AB756AEB  erzeugt: 2010-03-07  verfällt: niemals  <<<<<<<<<<<<<<<<<<<<<<<<<<< WANT TO DELETE THIS ONE
ssb  2048g/8605C6C9  erzeugt: 2010-03-07  verfällt: niemals   
(1)  André Ludwig <andre at bluesalamand.de>
(2)  André Ludwig <andre-ludwig at gmx.de>
(3)  André Ludwig <andre at klabitur.de>


$ gpg2 --with-colons --list-keys andre
tru::1:1268680745:1310335397:3:1:5
pub:u:1024:17:33ACE6FBACA3438B:1070622740:::u:::scESC:
uid:u::::1267979329::3332EBD5F03657462C477121634ACECA1B92423F::André Ludwig <andre at bluesalamand.de>:
uid:r::::::C27A194598C48F51B5829D63E8A4ED95C71F6DE9::André Ludwig <andre at klabitur.de>:
uid:u::::1267979337::9FBFE293AE50491B3A9D79825E2EC28E0DA3C8EE::André Ludwig <andre-ludwig at gmx.de>:
uid:u::::1267979337::D26CA709DCA720197ECFF757A1D118968B041E9E::André Ludwig <Ludwiga at students.uni-marburg.de>:
sub:e:1536:16:8125E9097469868B:1070622743:1268065682:::::e:
sub:u:2048:16:4523360E8605C6C9:1267979156:1331051156:::::e:

$ gpg2 --with-colons --list-secret-keys andre
sec::1024:17:33ACE6FBACA3438B:1070622740::::::scESC::::
uid:::::1267979329::3332EBD5F03657462C477121634ACECA1B92423F::André Ludwig <andre at bluesalamand.de>:
uid:::::::C27A194598C48F51B5829D63E8A4ED95C71F6DE9::André Ludwig <andre at klabitur.de>:
uid:::::1267979337::9FBFE293AE50491B3A9D79825E2EC28E0DA3C8EE::André Ludwig <andre-ludwig at gmx.de>:
uid:::::1267979337::D26CA709DCA720197ECFF757A1D118968B041E9E::André Ludwig <Ludwiga at students.uni-marburg.de>:
ssb::1536:16:8xxxxxx4469868B:10xxxxxx3:1268xxxxx82:::::e::::
ssb::2048:16:467xxxxx0E8605C6C9:126xxxxxx56:13xxxxxx156:::::e::::

$ gpg2 --with-colons --edit-key andre
Geheimer Schlüssel ist vorhanden.

pub:u:1024:17:33ACE6FBACA3438B:1070622740:0::u:::sc
fpr:::::::::985A4829196EE9198B530CF033ACE6FBACA3438B:
sub:e:1536:16:xxxxxxx097469868B:10xxxxxx43:1xxxxxxxx82:::::e
fpr:::::::::0A02031164C31753F6614F9B8125E9097469868B:
sub:u:2048:16:45xxxxxxxE8605C6C9:12xxxxxxx6:13xxxxxxxx56:::::e
fpr:::::::::18CBAFB85E09304E13A0D4444523360E8605C6C9:
uid:u::::::::André Ludwig <andre at bluesalamand.de>:::S9 S8 S7 S3 S2 H2 H3 Z2 Z1,mdc,no-ks-modify:1,p:
uid:r::::::::André Ludwig <andre at klabitur.de>:::,no-ks-modify:2,r:
uid:u::::::::André Ludwig <andre-ludwig at gmx.de>:::S9 S8 S7 S3 S2 H2 H3 Z2 Z1,mdc,no-ks-modify:3,:
uid:u::::::::André Ludwig <Ludwiga at students.uni-marburg.de>:::S9 S8 S7 S3 S2 H2 H8 H3 Z2 Z3 Z1,mdc,no-ks-modify:4,:

Befehl> toggle
              
uid:u::::::::André Ludwig <andre at bluesalamand.de>::::1,:
uid:u::::::::André Ludwig <andre-ludwig at gmx.de>::::2,:
uid:u::::::::André Ludwig <andre at klabitur.de>::::3,:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 203 bytes
Desc: Signierter Teil der Nachricht
URL: </pipermail/attachments/20100320/267748fd/attachment.pgp>


More information about the Gnupg-users mailing list