How to delete a gnuPG key ?

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
When trying to delete a GnuPG key, I get this error.

GnuPG
Unable to delete key. You might need to
delete the secret key first (secret keys must be deleted from a ssh
session


Which is the procedure to delete the key from ssh ?

If I terminate the account with the GnuPG keys ,
the Keys are deleted or remain on the server ?

Thank you
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
I tried

gpg --list-keys

but doesn't work

I tried
gpg --delete-secret-key [name of key]

but it cannot find the key ...

HELP !!!
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
What I have to do to receive support ?
No reply here , no reply via ticket support , please help !!!
 

Radio_Head

Well-Known Member
Verifed Vendor
Feb 15, 2002
2,048
1
343
Finally I found the solution to list and delete keys from ssh myself , and written a php file to delete secure keys too :p
 

erobs

Well-Known Member
Nov 24, 2002
48
0
156
Care to share how you did this? Or anyone else have a solution?

cPanel.net Support Ticket Number:
 

wineo

Active Member
Aug 30, 2003
27
0
151
Perth, Australia
I have a slightly different problem... I delete a GnuPG in cpanel, it asks for confirmation and when I return to the list it is still there. I also checked the file on the server and the trustdb file hadn't changed.

All I am trying to do really is renew the key, it had expired.

Any ideas?

Chris
 
Last edited:

drummondlw

Registered
Apr 3, 2004
2
0
151
Hi, anyone else worked out a solution to this?
I managed to delete the keys but now I can't remake them, it says it was successful but I have no keys, and I really need to have them
Any help would be great
 

beekeeper

Active Member
Apr 28, 2003
44
0
156
Melbourne, Australia
removing GnuPG keys

Use the following GnuPG commands from the (shell)command line in this order:

gpg --help
gpg --list-keys
gpg --delete-secret-keys keyname
gpg --deletekeys keyname
 

marius

Well-Known Member
PartnerNOC
Jun 10, 2002
157
0
316
Bucharest
Originally posted by wineo
I have a slightly different problem... I delete a GnuPG in cpanel, it asks for confirmation and when I return to the list it is still there. I also checked the file on the server and the trustdb file hadn't changed.

All I am trying to do really is renew the key, it had expired.

Any ideas?

Chris

Same problem here. Choose to delete a key, confirm, the confirmation result is shown "Public Key B0A0F699 has been deleted" but then.. nothing changed. The key is still in the list.

Anyone?

Marius