Skip to content

Instantly share code, notes, and snippets.

@DEARaison
Created September 23, 2023 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DEARaison/8bfa354cba694a3e659eb690efb083eb to your computer and use it in GitHub Desktop.
Save DEARaison/8bfa354cba694a3e659eb690efb083eb to your computer and use it in GitHub Desktop.
GPG
GPG
• Export GPG details
1. Running command to get secret key in base64 format:
## gpg -a --export-secret-keys <your-email-address> | base64 -w 0
1. Running command to get ownertrust in base64 format:
## gpg --export-ownertrust | base64 -w 0
• Get armor format of Public key:
## gpg --output public.pgp --armor --export mrbaotruongit@gmail.com
• Get armor format of Private key:
## gpg --output private.pgp --armor --export-secret-key mrbaotruongit@gmail.com
• Executable: gpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment