When I try to decrypt a file with pub.openpgp:decryptFile I get following error: “gpg: Sorry, no terminal at all requested - can’t get input”.
The cmdline variable when I trace into the decryptFile looks like:
“–homedir “C:\Documents and Settings\wmadmin\Application Data\gnupg” --no-tty --armor --yes --decrypt-files [filename]”
The only hint I found with google was to remove the “–no-tty” parameter. But it is necessary to execute GnuPG in batch mode.
After importing public keys from a file, I tried to encrypt with this public key, and I got:
gpg: 5C128B01: There is no assurance this key belongs to the named user
gpg: Sorry, no terminal at all requested - can’t get input
Is that something to do with passphrase as well? How could I fix it?
pgp.encryptfile= --homedir {0} --no-tty --armor --yes --recipient {2} --encrypt-files {1}
We are using Linux with JVM1.4.
I do not think the OpenPGP service is actually using JVM memory. It simply sends the command to OS. We encrypt files which have 2 or 3 MB size without problem. You may try to encrypt a file in your commad line and check the result first.