Skip to content

Instantly share code, notes, and snippets.

View MarcBittner's full-sized avatar

Marc Bittner MarcBittner

View GitHub Profile
@MarcBittner
MarcBittner / gpg-import-and-export-instructions.md
Created June 10, 2018 00:37 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

@MarcBittner
MarcBittner / gpg-import-and-export-instructions.md
Created June 10, 2018 00:36 — forked from chrisroos/gpg-import-and-export-instructions.md
Instructions for exporting/importing (backup/restore) GPG keys

Every so often I have to restore my gpg keys and I'm never sure how best to do it. So, I've spent some time playing around with the various ways to export/import (backup/restore) keys.

Method 1

Backup the public and secret keyrings and trust database

cp ~/.gnupg/pubring.gpg /path/to/backups/
cp ~/.gnupg/secring.gpg /path/to/backups/
cp ~/.gnupg/trustdb.gpg /path/to/backups/

or, instead of backing up trustdb...

Keybase proof

I hereby claim:

  • I am MarcBittner on github.
  • I am flashburn (https://keybase.io/flashburn) on keybase.
  • I have a public key whose fingerprint is 4C94 2A9F A7FA 83AE 04D6 473E 1E37 0407 7688 31A8

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am marcbittner on github.
  • I am flashburn (https://keybase.io/flashburn) on keybase.
  • I have a public key whose fingerprint is D4E1 7AA5 257F 2B1E BCF1 B136 4093 30F4 BA77 3D4D

To claim this, I am signing this object: