Troubleshooting
Problem
After Linux upgrade, PGP file transfers are failing while decrypting the files.
Symptom
After OS was upgraded, Business Process started failing during decryption and status report is showing below error:
gpg: public key decryption failed: Inappropriate ioctl for device
gpg: decryption failed: No secret key
gpg: decryption failed: No secret key
Cause
This error occurs because GPG by default ignores passphrases passed in via environment variables or stdin, and is trying to show a pinentry prompt.
Environment
This occurrence was reported in Sterling Integrator 6.1.1.1 and Linux version 8.5
Resolving The Problem
To solve the problem, Please enable loopback pinentry mode. Add below lines to ~/.gnupg/gpg.conf:
use-agent
pinentry-mode loopback
pinentry-mode loopback
And add this to ~/.gnupg/gpg-agent.conf, creating the file if it doesn't already exist:
allow-loopback-pinentry
Then restart the agent with echo RELOADAGENT | gpg-connect-agent
Document Location
Worldwide
[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS3JSW","label":"IBM Sterling B2B Integrator"},"ARM Category":[{"code":"a8m0z000000bpqlAAA","label":"Protocol->PGP"}],"ARM Case Number":"","Platform":[{"code":"PF016","label":"Linux"}],"Version":"6.1.0"}]
Product Synonym
IBM Sterling B2B Integrator
Was this topic helpful?
Document Information
Modified date:
22 July 2022
UID
ibm16606331