Hi,
While m using gpg manually it works fine. I want to include this command [marked in Red font] in my auto script. how to pass the
passphrase and
Use this key anyway? (y/N) in my script. Advance thanks.
$ gpg --sign --output xx.gpg --encrypt --recipient GXS_CTE xx.ext
You need a passphrase to unlock the secret key for
user: "payrun (payment process test) <
payrun@xx.com>"
1024-bit DSA key, ID 943F45B4, created 2012-08-07
+------------------------------------------------------------------------------------+
¦ Please enter the passphrase to unlock the secret key for the OpenPGP certificate: ¦
¦ "payrun (payment process test) <
payrun@xx.com>" ¦
¦ 1024-bit DSA key, ID 943F45B4, ¦
¦ created 2012-08-07. ¦
¦ ¦
¦ ¦
¦
Passphrase **********_____________________________________________________________ ¦
¦ ¦
¦ <OK> <Cancel> ¦
+------------------------------------------------------------------------------------+
gpg: 89709B71: There is no assurance this key belongs to the named user
pub 2048g/89709B71 2005-10-11 GXS_CTE
Primary key fingerprint: 511F F709 ACEB 570F F96C BFAB 15C7 331B 77B7 A94D
Subkey fingerprint: 6A36 AE14 A2ED 169B 6F5F 174D 0B61 8769 8970 9B71
It is NOT certain that the key belongs to the person named
in the user ID. If you *really* know what you are doing,
you may answer the next question with yes.
Use this key anyway? (y/N) y
$