Generate GPG key without passphrase
Remove prompts from your command line scripts
2 min readJun 3, 2021
I had a recent task to automate building a custom Debian image, using some custom software wrapped up as *.deb packages. These packages are stored in an local APT repository via reprepro (also created and populated by our script). The problem I kept running into was my script would prompt for the GPG key’s passphrase. This…