Tidy GPG article
This commit is contained in:
@@ -14,7 +14,8 @@ will only work for so long. But that means that every expiry interval you need
|
|||||||
to update the expiry dates to keep using the keys. And of course, like me, you
|
to update the expiry dates to keep using the keys. And of course, like me, you
|
||||||
totally remember how to do that a year (or a month, or 10 minutes) later. Right?
|
totally remember how to do that a year (or a month, or 10 minutes) later. Right?
|
||||||
|
|
||||||
So I wrote it down.
|
There is conflicting information about this, and GnuPG's documentation and UI
|
||||||
|
are terrible, so I wrote it down for us both.
|
||||||
|
|
||||||
For this recipe, you will need:
|
For this recipe, you will need:
|
||||||
|
|
||||||
@@ -39,7 +40,9 @@ export GNUPGHOME=$(mktemp -d)
|
|||||||
gpg --import
|
gpg --import
|
||||||
```
|
```
|
||||||
|
|
||||||
Just paste your master key into the terminal, or however else you want to get it into the container. Obviously look for people standing behind you scribbling furiously. You will be asked for your passphrase.
|
Just paste your master key into the terminal, or however else you want to get
|
||||||
|
it into the container. Obviously look for people standing behind you scribbling
|
||||||
|
furiously. You will be asked for your passphrase.
|
||||||
|
|
||||||
The output will include something like:
|
The output will include something like:
|
||||||
|
|
||||||
@@ -98,3 +101,5 @@ new expiry date.
|
|||||||
```
|
```
|
||||||
gpg --recv-keys masterkeyid
|
gpg --recv-keys masterkeyid
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Now if only I could work out how to get GPG agent forwarding to work...
|
||||||
|
|||||||
Reference in New Issue
Block a user