Skip to content

redhug1/gpg-transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPG Key Migration Toolkit

Purpose

Securely migrate GPG keys (public, private) and their trust settings between machines, preserving trust relationships.

Description

This toolkit consists of two Bash scripts:

  • gpg-export-all-with-trust.sh: Exports all GPG keys and trust settings from a source machine.
  • gpg-import-all-with-trust.sh: Imports the exported keys and trust settings into a destination machine.

For full details, see the file: specs.md.

Usage

Export Keys and Trust

./gpg-export-all-with-trust.sh [export_directory]
  • If no directory is specified, defaults to ~/gpg-migration-export-YYYYMMDD-HHMMSS/.
  • Outputs:
    • Armored public/private keys in public-keys/ and private-keys/.
    • Manifest files (public-keys-manifest.tsv, private-keys-manifest.tsv).
    • Trust settings (ownertrust-all.txt).
    • Summary log (export-summary.txt).

Import Keys and Trust

./gpg-import-all-with-trust.sh [import_directory]
  • If no directory is specified, defaults to the current working directory.
  • Requires:
    • public-keys-manifest.tsv and private-keys-manifest.tsv in the import directory.
  • Outputs:
    • Imports keys into the GPG keyring.
    • Applies trust settings from the manifests.
    • Summary log (import-summary-YYYYMMDD-HHMMSS.txt).

About

Scripts to aid migrating gpg keys to another machine

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages