When running gpg command (version 2.1 or later), the decryption fails with timeout. In the job output, the following error appears:
Using PGP encryption, with Template Name: …
Execute PGP command: "…
gpg: encrypted with 2048-bit RSA key, ID 4EAFA457FBC9F595, created 2018-01-24 "mykey <xyz@bmc.com>"
gpg: public key decryption failed: Timeout
gpg: decryption failed: No secret key
Command Exit code '2' doesn't match requested Exit Code '0'
Failed to execute PGP command!
Transfer of file '…' completed with errors.
Failed in job … in file transfer #1
|
Add the following line to the gpg-agent.conf file: ( create the file if not already present ) example :
-d --pinentry-mode loopback --passphrase $$PGP_PASSPHRASE$$ -o $$PGP_OUTPUT_FILE$$ $$PGP_INPUT_FILE$$
|