diff --git a/GPG.md b/GPG.md index f8151fb..393309a 100644 --- a/GPG.md +++ b/GPG.md @@ -13,8 +13,17 @@ --- -- [Export secret key](https://stackoverflow.com/a/5588513) +- List Key to get ID + ``` + gpg --list-secret-keys --keyid-format=long + ``` + +- Export secret key + + ``` + gpg --export-secret-keys --armor {ID} > secret.asc + ``` - Export key ``` - gpg --output public.gpg --armor --export + gpg --output public.gpg --armor --export {ID} ``` \ No newline at end of file