[EXTERNAL] RE: GPG error: Inappropriate ioctl for device

Siva Krishna Sayavarapu siva.sayavarapu at fedex.com
Mon Jul 22 16:17:51 CEST 2024


Thank you! The below solution worked.

Thanks & Regards,

Siva Krishna Sayavarapu | Sr. EDI Programmer Analyst | FedEx Logistics 

-----Original Message-----
From: NIIBE Yutaka <gniibe at fsij.org> 
Sent: Thursday, July 18, 2024 7:04 PM
To: Siva Krishna Sayavarapu <siva.sayavarapu at fedex.com>
Cc: gnupg-users at gnupg.org
Subject: [EXTERNAL] RE: GPG error: Inappropriate ioctl for device

Caution! This email originated outside of FedEx. Please do not open attachments or click links from an unknown or suspicious origin.

Hello,

Siva Krishna Sayavarapu wrote:
> gpg: signing failed: Inappropriate ioctl for device

I think that this is due to pinentry program (it complains that there's no suitable device, tty, to ask passphrase).

Well, older GnuPG was more friendly in those situations where a programmer wants to feed passphrase input by other method.

> --passphrase-fd 0 --no-tty --batch --sign --encrypt --compress-algo 1 
> --cipher-algo cast5

IIUC about your intention by using --passphrase-fd, what you need here is an option --pinentry-mode=loopback (not to use an external pinentry program).

Hope this helps,
-- 



More information about the Gnupg-users mailing list