#!/usr/bin/env bash # Export private GPG key gpg --export-secret-keys -a C10546A54ABA1CE5 #-----BEGIN PGP PRIVATE KEY BLOCK----- #... #-----END PGP PRIVATE KEY BLOCK----- # Export public GPG key gpg --export -a C10546A54ABA1CE5 #-----BEGIN PGP PUBLIC KEY BLOCK----- #... #-----END PGP PUBLIC KEY BLOCK-----