Thank you! The below solution worked. Thanks & Regards,
Siva Krishna Sayavarapu | Sr. EDI Programmer Analyst | FedEx Logistics -----Original Message----- From: NIIBE Yutaka <gni...@fsij.org> Sent: Thursday, July 18, 2024 7:04 PM To: Siva Krishna Sayavarapu <siva.sayavar...@fedex.com> Cc: gnupg-users@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, -- _______________________________________________ Gnupg-users mailing list Gnupg-users@gnupg.org https://lists.gnupg.org/mailman/listinfo/gnupg-users