Public
Authored by Matija Obreza

GPG private key import

Latest gpg version requires --batch mode:

echo "${GPG_KEY_SECRET}" | gpg --batch --import
gpg --list-keys

This prevents the magic error message Inappropriate ioctl for device:

gpg: key 196FC72EC2E04176/196FC72EC2E04176: error sending to agent: Inappropriate ioctl for device
gpg: error building skey array: Inappropriate ioctl for device
gpg-key-import.sh 64 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment