Add gnupg.

This commit is contained in:
2016-03-08 00:00:46 +01:00
parent f6ecae1b14
commit ce29019ec0
5 changed files with 57 additions and 9 deletions

View File

@@ -1 +1 @@
gnupg::.gnupg

5
gnupg/dirmngr.conf Normal file
View File

@@ -0,0 +1,5 @@
keyserver hkps://hkps.pool.sks-keyservers.net
hkp-cacert ~/.gnupg/sks-keyservers.netCA.pem
disable-ldap
disable-http

9
gnupg/gpg-agent.conf Normal file
View File

@@ -0,0 +1,9 @@
default-cache-ttl 3600
default-cache-ttl-ssh 3600
max-cache-ttl 86400
max-cache-ttl-ssh 86400
enable-ssh-support
pinentry-program /usr/bin/pinentry-qt

26
gnupg/gpg.conf Normal file
View File

@@ -0,0 +1,26 @@
openpgp
no-greeting
no-comments
no-emit-version
keyid-format 0xlong
with-fingerprint
no-escape-from-lines
display-charset utf-8
fixed-list-mode
verify-options show-uid-validity
list-options show-uid-validity
no-mangle-dos-filenames
keyserver-options no-honor-keyserver-url no-auto-key-retrieve
personal-digest-preferences SHA512 SHA384 SHA256
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed

View File

@@ -1,5 +1,3 @@
# exec startx breaks some logind fuckery, without exec it works
#tmux start-server &
_path=("$HOME/bin"
"/usr/local/sbin"
"/usr/local/bin"
@@ -28,11 +26,21 @@ export WINEPATH="/media/hdd1/games/wine"
export LOGDIR="$HOME/.var/log"
export RUNDIR="$HOME/.var/run"
if [[ -z "$SSH_CONNECTION" ]] ; then
if ! pgrep ssh-agent --uid $USER >/dev/null 2>&1 ; then
eval $(ssh-agent -s)
fi
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx
# Start the gpg-agent if not already running
if ! pgrep -x --uid "${USER}" gpg-agent >/dev/null 2>&1; then
gpg-connect-agent /bye >/dev/null 2>&1
fi
# Set SSH to use gpg-agent
unset SSH_AGENT_PID
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
export SSH_AUTH_SOCK="${HOME}/.gnupg/S.gpg-agent.ssh"
fi
# Set GPG TTY
export GPG_TTY=$(tty)
gpg-connect-agent updatestartuptty /bye >/dev/null
# exec startx breaks some logind fuckery, without exec it works
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && startx