From cb3398eded33bdd2779a3a39ee3ef1add00eeb7f Mon Sep 17 00:00:00 2001 From: Gabriel Ittner Date: Wed, 1 May 2024 10:59:13 +0200 Subject: [PATCH] update gpg docs (#771) --- docs/central.md | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/docs/central.md b/docs/central.md index cf758382..70ed9fc2 100755 --- a/docs/central.md +++ b/docs/central.md @@ -244,11 +244,24 @@ user home or to use environment variables for publishing from CI servers. ### In memory GPG key -To obtain the in memory signing key run the following command. **Warning: this will print the private -GPG key in plain text** +To obtain the in memory signing key run the following command. + +!!! warning + + This will print the private GPG key in plain text. + ```sh -gpg2 --export-secret-keys --armor | grep -v '\-\-' | grep -v '^=.' | tr -d '\n' +gpg --export-secret-keys --armor | grep -v '\-\-' | grep -v '^=.' | tr -d '\n' ``` + +!!! info + + If you have a `secring.gpg` file that contains your key add the path to that + file after the ``: + ```sh + gpg --export-secret-keys --armor | grep -v '\-\-' | grep -v '^=.' | tr -d '\n' + ``` + The result will be a very long single line string that looks like this ``` lQdGBF4jUfwBEACblZV4uBViHcYLOb2280tEpr64iB9b6YRkWil3EODiiLd9JS3V...9pip+B1QLwEdLCEJA+3IIiw4qM5hnMw=