aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/README.md
diff options
context:
space:
mode:
authordrduh <github@duh.to>2019-08-08 22:12:05 +0000
committerGitHub <noreply@github.com>2019-08-08 22:12:05 +0000
commitdd1d766e551c157276044ce88d3cb2f1c7938f4d (patch)
treeb30c7fdf0ea25e249988910e7b7ff9fb2e86c444 /README.md
parentMerge pull request #118 from anoadragon453/patch-1 (diff)
parentMove output option to earlier in command (diff)
downloadYubiKey-Guide-dd1d766e551c157276044ce88d3cb2f1c7938f4d.tar.gz
Merge pull request #119 from dbradley771/patch-1
Move Output Option to Earlier in Export Command for Windows
Diffstat (limited to 'README.md')
-rw-r--r--README.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index d0e8ac0..4e5406f 100644
--- a/README.md
+++ b/README.md
@@ -666,9 +666,9 @@ $ gpg --armor --export-secret-subkeys $KEYID > $GNUPGHOME/sub.key
On Windows, note that using any extension other than `.gpg` or attempting IO redirection to a file will garble the secret key, making it impossible to import it again at a later date:
```console
-$ gpg --armor --export-secret-keys $KEYID -o \path\to\dir\mastersub.gpg
+$ gpg -o \path\to\dir\mastersub.gpg --armor --export-secret-keys $KEYID
-$ gpg --armor --export-secret-subkeys $KEYID -o \path\to\dir\sub.gpg
+$ gpg -o \path\to\dir\sub.gpg --armor --export-secret-subkeys $KEYID
```
# Backup
@@ -841,7 +841,7 @@ $ gpg --armor --export $KEYID | sudo tee /mnt/public/$KEYID-$(date +%F).txt
Windows:
```console
-$ gpg --armor --export $KEYID -o \path\to\dir\pubkey.gpg
+$ gpg -o \path\to\dir\pubkey.gpg --armor --export $KEYID
```
**Optional** Upload the public key to a [public keyserver](https://debian-administration.org/article/451/Submitting_your_GPG_key_to_a_keyserver):