Sorry, didn't see that you were already using the built-in PGP support. Did you try running the test cases here:
http://svn.apache.org/repos/asf/camel/trunk/components/camel-crypto/src/test/java/org/apache/camel/converter/crypto/ I'd say start there and modify it to suit your needs. On Thu, Sep 6, 2012 at 10:12 PM, James Carman <ja...@carmanconsulting.com> wrote: > Have you tried using bouncycastle as your JCE provider? It supports PGP. > > On Thu, Sep 6, 2012 at 4:33 PM, ckalirasa <ckalir...@yahoo.com> wrote: >> The error I was getting : >> >> java.lang.IllegalArgumentException: Public key is null, cannot proceed >> at >> org.apache.camel.converter.crypto.PGPDataFormat.marshal(PGPDataFormat.java:66)[camel-crypto-2.10.0.jar:2.10.0] >> at >> org.apache.camel.processor.MarshalProcessor.process(MarshalProcessor.java:59)[camel-core-2.10.0.jar:2.10.0] >> >> Eventhough the 'pubring.gpg' contains publick key. >> >> >> >> -- >> View this message in context: >> http://camel.465427.n5.nabble.com/does-Camel-support-PGP-Encryption-tp5718723p5718735.html >> Sent from the Camel Development mailing list archive at Nabble.com.