From 7bfae573361e5dda512fe607a8e7902852da73d9 Mon Sep 17 00:00:00 2001 From: drduh Date: Sun, 15 Aug 2021 15:42:53 -0700 Subject: [PATCH] Update filenames to fix #222 --- LICENSE | 2 +- README.md | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/LICENSE b/LICENSE index e1efebe..ba408a2 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2016-2020 drduh +Copyright (c) 2016 drduh Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/README.md b/README.md index 221e213..c2b97e9 100644 --- a/README.md +++ b/README.md @@ -1203,7 +1203,7 @@ $ sudo mkdir /mnt/public $ sudo mount /dev/mmcblk0p2 /mnt/public/ -$ gpg --armor --export $KEYID | sudo tee /mnt/public/gpg-$KEYID-$(date +%F).txt +$ gpg --armor --export $KEYID | sudo tee /mnt/public/gpg-$KEYID-$(date +%F).asc ``` **OpenBSD** @@ -1225,7 +1225,7 @@ $ doas mkdir /mnt/public $ doas mount /dev/sd2b /mnt/public -$ gpg --armor --export $KEYID | doas tee /mnt/public/$KEYID.txt +$ gpg --armor --export $KEYID | doas tee /mnt/public/gpg-$KEYID-$(date +%F).asc ``` **Windows** @@ -1602,7 +1602,7 @@ $ doas mount /dev/sd2b /mnt Import the public key file: ```console -$ gpg --import /mnt/0x*txt +$ gpg --import /mnt/gpg-0x*.asc gpg: key 0xFF3E7D88647EBCDB: public key "Dr Duh " imported gpg: Total number processed: 1 gpg: imported: 1 @@ -1896,16 +1896,16 @@ Key is valid for? (0) ``` Follow these prompts to set a new expiration date, then `save` to save your changes. -Next, export your public key: +Next, export the public key: ```console -$ gpg --export $KEYID > pubkey.gpg +$ gpg --armor --export $KEYID > gpg-$KEYID-$(date +%F).asc ``` Transfer that public key to the computer from which you use your GPG key, and then import it with: ```console -$ gpg --import pubkey.gpg +$ gpg --import gpg-0x*.asc ``` This will extend the validity of your GPG key and will allow you to use it for SSH authorization. Note that you do _not_ need to update the SSH public key located on remote servers. @@ -1950,7 +1950,7 @@ $ sudo mkdir /mnt/public $ sudo mount /dev/mmcblk0p2 /mnt/public -$ gpg --armor --export $KEYID | sudo tee /mnt/public/$KEYID-$(date +%F).txt +$ gpg --armor --export $KEYID | sudo tee /mnt/public/$KEYID-$(date +%F).asc $ sudo umount /mnt/public ``` @@ -1970,13 +1970,13 @@ After having completed the environment setup, it is possible to follow any of th At this point the public key can be exported: ```console -$ gpg --export $KEYID > pubkey.gpg +$ gpg --export $KEYID > pubkey.asc ``` The public key can now be transferred to the computer where the GPG key is used and it is imported with: ```console -$ gpg --import pubkey.gpg +$ gpg --import pubkey.asc ``` N.B.: The `showpref` command can be issued to ensure that the notions were correctly added.