diff options
author | andreas tux-book | 2024-01-21 13:05:02 +0100 |
---|---|---|
committer | andreas tux-book | 2024-01-21 13:05:02 +0100 |
commit | 8bf929b59fb4688b58fdea59548a0cbe3cb55f6d (patch) | |
tree | 90be0a7090ec1fe5e540f3d9638fce6c0d8f1e4f /doc/note | |
parent | 3c37451a37878c7958825b38c7ade5839026a97d (diff) | |
download | UnspecifiedGarbage-8bf929b59fb4688b58fdea59548a0cbe3cb55f6d.zip UnspecifiedGarbage-8bf929b59fb4688b58fdea59548a0cbe3cb55f6d.tar.gz |
Add doc about expand expiry of gpg keys
Diffstat (limited to 'doc/note')
-rw-r--r-- | doc/note/gpg/gpg.txt | 18 | ||||
-rw-r--r-- | doc/note/mount/mount.txt | 8 |
2 files changed, 26 insertions, 0 deletions
diff --git a/doc/note/gpg/gpg.txt b/doc/note/gpg/gpg.txt index 0089221..5340945 100644 --- a/doc/note/gpg/gpg.txt +++ b/doc/note/gpg/gpg.txt @@ -67,6 +67,24 @@ you're doing! If you don't, you MUST NOT use those instructions! gpgwin --sign-key foreignUser@example.com +## Expand detached subkey expiry + + cd "${WORKDIR:?}" + mkdir master + (cd "${OFFHOME:?}/.gnupg" && tar c *) | (cd master && tar x) + export GNUPGHOME="${WORKDIR:?}/master" + gpg --list-secret-keys --with-keygrip --keyid-format=long --with-fingerprint --with-subkey-fingerprint --list-options show-unusable-subkeys + gpg --edit-key SSB_KEY + key 1 + key 2 + expire + save + gpg --export-secret-subkeys F00! BA5! > subkey-$(date -u +%Y%m%d).sec.gpg + gpg --export F00! BA5! > subkey-$(date -u +%Y%m%d).pub.gpg + tar --owner=0 --group=0 -c subkey-$(date -u +%Y%m%d).*.gpg | (cd "${OFFHOME:?}" && sudo tar x) + md5sum -b subkey-$(date -u +%Y%m%d).*.gpg | sudo tee -a "${OFFHOME:?}/MD5SUM" + + ## Use keys with throw-away keyring GNUPGHOME="/tmp/foo/" diff --git a/doc/note/mount/mount.txt b/doc/note/mount/mount.txt new file mode 100644 index 0000000..99e1521 --- /dev/null +++ b/doc/note/mount/mount.txt @@ -0,0 +1,8 @@ + +## tmpfs / ramfs + +TODO: it seems as 'size' has no effect, and system may run OOM instead. + + mount -t ramfs -o size=1G ramfs /mnt/ramfs + chown -R $(whoami):$(whoami) /mnt/ramfs + |