From 46863f7b64d070a9378c2ac7d2818c82edf1757f Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 14 May 2019 11:32:10 +0200 Subject: [PATCH] gpg configure --- in/public/security/gpg/configure.rst | 88 +++++++++++++++++++++++++++ in/public/security/gpg/index.rst | 1 + in/public/security/gpg/overview.rst | 89 ---------------------------- 3 files changed, 89 insertions(+), 89 deletions(-) create mode 100644 in/public/security/gpg/configure.rst diff --git a/in/public/security/gpg/configure.rst b/in/public/security/gpg/configure.rst new file mode 100644 index 0000000..78394f5 --- /dev/null +++ b/in/public/security/gpg/configure.rst @@ -0,0 +1,88 @@ +Configure +========= + +If up: + +.. code:: shell + + killall -9 gpg-agent + killall -9 dirmngr + +wipe if needed +-------------- + +.. code:: shell + + rm --force --recursive ~/.gnupg + mkdir -m 700 ~/.gnupg + +check available algorithms +-------------------------- + +.. code:: shell + + gpg --version + +avoid default use of SHA256 +--------------------------- + +* gpg.conf + +:: + + keyid-format long + keyserver-options include-revoked + list-options show-uid-validity + no-verbose + verify-options show-uid-validity + with-fingerprint + with-keygrip + with-subkey-fingerprint + + export-options export-minimal + no-comments + no-emit-version + + default-preference-list SHA512 AES256 BZIP2 + + cert-digest-algo SHA512 + cipher-algo AES256 + compress-algo BZIP2 + digest-algo SHA512 + + personal-cipher-preferences AES256 + personal-digest-preferences SHA512 + personal-compress-preferences BZIP2 + + s2k-cipher-algo AES256 + s2k-digest-algo SHA512 + s2k-mode 3 + s2k-count 65011712 + +avoid DL/UL issues, depending on DNS +------------------------------------ + +* dirmngr.conf + +:: + + standard-resolver + +authenticate +------------ + +* gpg-agent.conf + +:: + + enable-ssh-support + +* sshcontrol + +KeyGrip to use if there are several + +:: + + KKEEYYGGRRIIPP + +* export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) diff --git a/in/public/security/gpg/index.rst b/in/public/security/gpg/index.rst index 5887994..711e779 100644 --- a/in/public/security/gpg/index.rst +++ b/in/public/security/gpg/index.rst @@ -5,4 +5,5 @@ GnuPG :maxdepth: 2 overview + configure servers diff --git a/in/public/security/gpg/overview.rst b/in/public/security/gpg/overview.rst index 32bdefe..a79d5ad 100644 --- a/in/public/security/gpg/overview.rst +++ b/in/public/security/gpg/overview.rst @@ -10,95 +10,6 @@ OverView * sign * delete -Configure -========= - -If up: - -.. code:: shell - - killall -9 gpg-agent - killall -9 dirmngr - -wipe if needed --------------- - -.. code:: shell - - rm --force --recursive ~/.gnupg - mkdir -m 700 ~/.gnupg - -check available algorithms --------------------------- - -.. code:: shell - - gpg --version - -avoid default use of SHA256 ---------------------------- - -* gpg.conf - -:: - - keyid-format long - keyserver-options include-revoked - list-options show-uid-validity - no-verbose - verify-options show-uid-validity - with-fingerprint - with-keygrip - with-subkey-fingerprint - - export-options export-minimal - no-comments - no-emit-version - - default-preference-list SHA512 AES256 BZIP2 - - cert-digest-algo SHA512 - cipher-algo AES256 - compress-algo BZIP2 - digest-algo SHA512 - - personal-cipher-preferences AES256 - personal-digest-preferences SHA512 - personal-compress-preferences BZIP2 - - s2k-cipher-algo AES256 - s2k-digest-algo SHA512 - s2k-mode 3 - s2k-count 65011712 - -avoid DL/UL issues, depending on DNS ------------------------------------- - -* dirmngr.conf - -:: - - standard-resolver - -authenticate ------------- - -* gpg-agent.conf - -:: - - enable-ssh-support - -* sshcontrol - -KeyGrip to use if there are several - -:: - - KKEEYYGGRRIIPP - -* export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) - Generate ========