Skip to content

Instantly share code, notes, and snippets.

@SalemHarrache
Created December 24, 2019 13:41
Show Gist options
  • Select an option

  • Save SalemHarrache/c519b87260e9f4c7d6075df50517962f to your computer and use it in GitHub Desktop.

Select an option

Save SalemHarrache/c519b87260e9f4c7d6075df50517962f to your computer and use it in GitHub Desktop.

This only really works if you don't mind losing any other keys (than your own).

Export public and secret key and ownertrust

gpg -a --export chris@seagul.co.uk > chrisroos-public-gpg.key
gpg -a --export-secret-keys chris@seagul.co.uk > chrisroos-secret-gpg.key
gpg --export-ownertrust > chrisroos-ownertrust-gpg.txt

Import secret key (which contains the public key) and ownertrust

gpg --import chrisroos-secret-gpg.key
gpg --import-ownertrust chrisroos-ownertrust-gpg.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment