diff --git a/.bashrc b/.bashrc index ea1170722113002d920a0deb5f17560f7c97220d..c09355c9175ed23d764644df39fce26f4ac4da22 100644 --- a/.bashrc +++ b/.bashrc @@ -20,7 +20,6 @@ export CLOUDSDK_ACTIVE_CONFIG_NAME='shore' export DOCKER_BUILDKIT=1 export EDITOR=vim export GITLAB_BASE_URL='https://git.shore.co.il/api/v4' -export GNUPGHOME="$HOME/Documents/.gnupg" export GOPATH="$HOME/.local/golang" export HELM_HOME="$HOME/.helm" export HISTCONTROL=ignoreboth:erasedups diff --git a/.gnupg/gpg.conf b/.gnupg/gpg.conf new file mode 100644 index 0000000000000000000000000000000000000000..c24c896892cbf3987f024a6e6dfd17d0aa0cc538 --- /dev/null +++ b/.gnupg/gpg.conf @@ -0,0 +1,5 @@ +use-agent +default-key D3B913DE36AB5565DCAC91C6A322378C61339ECD +personal-digest-preferences SHA256 +cert-digest-algo SHA256 +default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed diff --git a/Makefile b/Makefile index 7c00f8f32e3f979a6e7d169a129d28576bff9674..5cde15ee27522c2174c6d5aa5b6f0315d2b871ce 100644 --- a/Makefile +++ b/Makefile @@ -93,3 +93,9 @@ all: .aws/credentials echo '[smile]' > '$@' echo "aws_access_key_id = $$(ph show --field 'UserName' 'Smile/AWS CLI')" >> '$@' echo "aws_secret_access_key = $$(ph show --field 'Password' 'Smile/AWS CLI')" >> '$@' + +all: .gnupg/trustdb.gpg +.gnupg/trustdb.gpg: Documents/Database.kdbx + ph show --field 'Notes' 'GPG/D3B913DE36AB5565DCAC91C6A322378C61339ECD' | gpg --import + echo 'D3B913DE36AB5565DCAC91C6A322378C61339ECD:6:' | gpg --import-ownertrust + chmod 600 '$@'