Unable to generate GPG key - Pinentry missing
Summary
Unable to generate a GPG key when running this container image.
Steps to reproduce
- Use the container image from ironbank to run a container interactively with bash.
- attempt to generate a gpg key
gpg --quick-generate-key bigbang-sops rsa4096 encr | sed -e 's/ *//;2q;d;'
What is the current bug behavior?
GPG key cannot be created due to pinentry missing from the container image
What is the expected correct behavior?
GPG key created successfully
Relevant logs and/or screenshots
gpg: keybox '/tmp/pubring.kbx' created
We need to generate a lot of random bytes. It is a good idea to perform
some other action (type on the keyboard, move the mouse, utilize the
disks) during the prime generation; this gives the random number
generator a better chance to gain enough entropy.
gpg: agent_genkey failed: No pinentry
Key generation failed: No pinentry
Possible fixes
microdnf install pinentry
Defintion of Done
-
Bug has been identified and corrected within the container
Edited by Jacob Rohlman