GPG: Fail to import the secret key from previous gnupg2 version
Issue
-
When trying to import a gpg backup, the secret key is not imported, and following errors are displayed:
gpg: error building skey array: Inappropriate ioctl for device gpg: error reading '[stdin]': Inappropriate ioctl for device gpg: import from '[stdin]' failed: Inappropriate ioctl for device
Environment
- Red Hat Enterprise Linux 8
- gpg (GnuPG2)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.