From 63becaf0dff4fae2232e73680278e8709e652051 Mon Sep 17 00:00:00 2001 From: Anri Kennel Date: Fri, 14 Jun 2024 17:35:05 +0200 Subject: [PATCH] Actualiser GPG --- GPG.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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