Skip to content

Instantly share code, notes, and snippets.

@AriTheElk
AriTheElk / gpg_key_backup.md
Last active June 4, 2022 11:53
Backup/Restore GPG key

The following is the procedure I use on UNIX systems:

First, export all public certificates into a public keyring:

$ gpg --armor --export > pub.asc

Second, export all secret certificates into a secret keyring: