1
0
mirror of https://github.com/drduh/YubiKey-Guide.git synced 2024-12-22 08:28:55 +00:00

Update filenames to fix #222

This commit is contained in:
drduh 2021-08-15 15:42:53 -07:00
parent a02350f318
commit 7bfae57336
2 changed files with 10 additions and 10 deletions

View File

@ -1,6 +1,6 @@
The MIT License (MIT) 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 Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View File

@ -1203,7 +1203,7 @@ $ sudo mkdir /mnt/public
$ sudo mount /dev/mmcblk0p2 /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** **OpenBSD**
@ -1225,7 +1225,7 @@ $ doas mkdir /mnt/public
$ doas mount /dev/sd2b /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** **Windows**
@ -1602,7 +1602,7 @@ $ doas mount /dev/sd2b /mnt
Import the public key file: Import the public key file:
```console ```console
$ gpg --import /mnt/0x*txt $ gpg --import /mnt/gpg-0x*.asc
gpg: key 0xFF3E7D88647EBCDB: public key "Dr Duh <doc@duh.to>" imported gpg: key 0xFF3E7D88647EBCDB: public key "Dr Duh <doc@duh.to>" imported
gpg: Total number processed: 1 gpg: Total number processed: 1
gpg: imported: 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. 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 ```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: Transfer that public key to the computer from which you use your GPG key, and then import it with:
```console ```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. 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 $ 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 $ 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: At this point the public key can be exported:
```console ```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: The public key can now be transferred to the computer where the GPG key is used and it is imported with:
```console ```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. N.B.: The `showpref` command can be issued to ensure that the notions were correctly added.