Skip to content

Instantly share code, notes, and snippets.

View Turmaxx's full-sized avatar
💬
Estimating Derivations

Brook Turmaxx

💬
Estimating Derivations
View GitHub Profile

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

Gotten from the RedHat GPG migration manual

Backup the public and secret keyrings and trust database

## Export all public keys

gpg -a --export >mypubkeys.asc