Encryption failed with following error: Status = -1


When i try to encrypt a large file, the PGP encryption service returned Status cdode withvalue of -1; Is there are any limitation for size of file? Or webMethods Integration Server ran out of memory when encrypting such large file?

Thanks, Aleks!


For large files it is recommended to use the file based services. The string-based services run the entire file through the JVM which is not efficient since the PGP sign/encrypt is being done in an external process.

pub.openpgp.encrypt works on strings, pub.openpgp.encryptFile works on files.

– Tim