Generate GPG key without passphrase

Remove prompts from your command line scripts

Shawn Grover

--

Photo by Florian Berger on Unsplash

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…

--

--