camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Problem encrypting data using PGP data format
Date Fri, 15 Mar 2013 01:30:39 GMT
Hi,

Did you try to test your PGP data format setting with a simple route like this?
<camel:from uri="direct:start"/>
<marshal … />
<camel:to uri="mock:result"/>


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Friday, March 15, 2013 at 1:52 AM, GarethHughes wrote:

> I have a route thus:
>  
> <camel:route id="encryptRoute">
> <camel:from uri="gwmq:queue:inbound_files" />
> <camel:transacted/>
> <to
> uri="log:encrypt?showBody=true&amp;showHeaders=true&amp;showProperties=true&amp;multiline=true&amp;level=INFO"/>
> <marshal><pgp keyFileName="file:c:/gnupg/pubring.gpg" keyUserid="DTSHUB"
> /></marshal>
> <camel:to uri="gwmq:queue:encrypted_inbound_files" />
> </camel:route>
>  
> The route throws a very generic org.apache.camel.CamelExecutionException and
> a stack trace which doesn't really suggest what the error might be (see
> below).
>  
> It found the keyring file OK because if I specify that incorrectly can't
> find that it throws a sensible file not found exception.  
>  
> It is also finding the public key, because if I specify the wrong keyUserId
> it complains the public key is not found.
>  
> I'm using the bouncy castle 1.46 jars.
>  
> Has anyone any idea what the problem might be?
>  
> Thanks
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Problem-encrypting-data-using-PGP-data-format-tp5729203.html
> Sent from the Camel - Users mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message