23

I have created a PGP key using GPGTools, and published it a while ago. Things are: I have no longer access to my secret key. Indeed, I unfortunately formatted the wrong drive (encryption was and is enabled).

And because I'm that kind of guy, I have no backup.

Well I know that I can't do anything about it:
Lost PGP private key and want to remove it from keyserver.ubuntu.com

However, I would like to know what I can do now. The expiration date was set (4 years), but there must be better way than to wait that long.

  1. Generate a new pair of keys

  2. Make a backup

  3. ???

CallMeStupid
  • 231
  • 1
  • 2
  • 3
  • Was the private key safely erased / overwritten? Usually it is recommeded to use a short expiration time like 1 year and generate revoke certs. –  Nov 15 '15 at 11:39
  • 1
    Depending what you mean by "formatted", it might still be possible for you to restore files, including the key. If you actually wrote the disk full of zeroes/random data, then not so much, but if you just eg. initialized an empty filesystem on top of the old one, all of the data should still be there. – Aleksi Torhamo Nov 15 '15 at 15:38
  • You might be interested on having a subkey besides your private key. The advantage of using a subkey is that you can carry it with you and eventually have it stolen (if your laptop is stolen) without too much hassle. All you need is keeping your private key safe (as it should always be). More details here: https://nxfifteen.me.uk/pgp/creation/ – Richard Gomes Oct 26 '17 at 01:19

2 Answers2

11

If you don't have the private key, and you don't have the revoke certificate, then there is nothing you can do about the existing key.

You should:

  1. Generate a new pair of keys
  2. Publish your new public key to a key server
  3. Let anyone who uses the old key know you have a new one
  4. Take the time to generate a revoke certificate and make and store backups.

One option to mark the lost key as revoked on the key server is detailed in this answer here

JonnyWizz
  • 1,961
  • 1
  • 16
  • 34
  • @otus good point well made, I have updated the answer – JonnyWizz Nov 15 '15 at 18:56