IT notes


Install gpg on macOS: brew install gnupg pinentry-mac if required restart gpg-agent with gpgconf --kill gpg-agent To create a gpg key in batch mode, create a file named gpg-key-script with this value: Key-Type: 1 Key-Length: 2048 Subkey-Type: 1 Subkey-Length: 2048 Name-Real: your name Name-Comment: your comment Name-Email: [email protected] Expire-Date: 0 Next you could do something like: $ gpg --homedir /salt/gpgkeys --batch --gen-key gen-key-script Backup private key To save the private key to a file: