/4th_meetup

Primary LanguageShellMIT LicenseMIT

4th_meetup

gpg commands

# list all keys
gpg --list-keys 

# create a key
gpg --gen-key
# trust key
gpg --edit-key pstauffer@confirm.ch
trust
5

gpg-agent

# install gpg-agent via gnupg-agent package
apt-get install gnupg-agent

Use Case

# encrypt password
echo test |gpg -r pstauffer@confirm.ch -e -o vault_passphrase.gpg
chmod 600 vault_passphrase.gpg

# define vault password file
export ANSIBLE_VAULT_PASSWORD_FILE=vault.sh

chmod 750 vault.sh

Links

To Do