Re: How do I delete secret subkeys correctly?

2019-04-11 Thread Matheus Afonso Martins Moreira
> I think you might be misinterpreting the result > you say you are dealing with revoked subkeys. > Unless you specify "--list-options show-unusable-subkeys", > you might not see those in the keylistings even though they are there. You're right! > The gpg binary only deals with public keys in the

Re: How do I delete secret subkeys correctly?

2019-04-11 Thread Matheus Afonso Martins Moreira
> I was trying to figure out how to do it through the user interface, and > it's pretty clunky, with some scary failure modes. I've opened > https://dev.gnupg.org/T4457 about it. Thank you! > I know that with the version of GnuPG that you're using right now, you > can delete the secret key by le

Re: How do I delete secret subkeys correctly?

2019-04-11 Thread Daniel Kahn Gillmor
On Wed 2019-04-10 17:28:54 +0200, Peter Lebbing wrote: > On 10/04/2019 17:24, Peter Lebbing wrote: >> gpg> delkey > > Sorry, my fatigued head was being silly. That's for deleting the public > part, not the secret part. I don't think I know the way to delete the > secret part when you just want to d

Re: How do I delete secret subkeys correctly?

2019-04-11 Thread Peter Lebbing
On 11/04/2019 16:06, Matheus Afonso Martins Moreira wrote: > Public key list confirmed deletion of the subkeys from my public key > but the secret key list still included all my revoked subkeys. Could you provide an example? I find this rather surprising, that -K would ever list more than -k. > T

Re: How do I delete secret subkeys correctly?

2019-04-11 Thread Matheus Afonso Martins Moreira
The --edit-key command did work this time. That's weird. I tried this with my original keys and my experience matches what Peter described. When I tried to delkey my original subkeys, gpg deleted the public key packets, leaving the secret keys intact. Public key list confirmed deletion of the subk

Re: How do I delete secret subkeys correctly?

2019-04-10 Thread Brian Exelbierd
On Wed, Apr 10, 2019, at 5:06 PM, Matheus Afonso Martins Moreira wrote: > I had some revoked subkeys that I was not going to use anymore. > I thought it would be a good idea to delete their secret keys, > so I used the gpg --delete-secret-keys command to do it. > I ended up accidentally deleting

Re: How do I delete secret subkeys correctly?

2019-04-10 Thread Peter Lebbing
On 10/04/2019 17:24, Peter Lebbing wrote: > gpg> delkey Sorry, my fatigued head was being silly. That's for deleting the public part, not the secret part. I don't think I know the way to delete the secret part when you just want to delete some subkey. Sorry, Peter. -- I use the GNU Privacy Gua

Re: How do I delete secret subkeys correctly?

2019-04-10 Thread Peter Lebbing
On 10/04/2019 15:25, Matheus Afonso Martins Moreira wrote: > If not, what is the correct way to do this? $ gpg --edit-key [KEYID] gpg> key N gpg> delkey Where N is the number of the subkey you want to delete; they are numbered 1 for the first one listed and so on. It will indicate with a "*" next

How do I delete secret subkeys correctly?

2019-04-10 Thread Matheus Afonso Martins Moreira
I had some revoked subkeys that I was not going to use anymore. I thought it would be a good idea to delete their secret keys, so I used the gpg --delete-secret-keys command to do it. I ended up accidentally deleting all my keys instead, including my primary key. I'm trying to learn from my mistak