I tried having the sslContextPArameters tag outside the routes tag, but that
didn't help either. I now have my route as given below,

    <route id="parseJSON">
        <from uri="direct:inter2" />

<sslContextParameters id="SSLContextParameters">
    <keyManagers>
      <keyStore resource="/home/cert.pfx" password="********" />
</keyManagers>
</sslContextParameters>

<setHeader headerName="CamelHttpMethod">
        <constant>GET</constant>
    </setHeader>
<setHeader headerName="Authorization">
<constant>Basic YWRtaW46dGVzdHBhc3M=</constant>
</setHeader>
<to uri="https4://somedomain.com/tenants?SSLContextParameters"/>


And i get this error,

Exhausted after delivery attempt: 1 caught:
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated:
javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
        at 
com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificates(Unknown
Source) [jsse.jar:1.6]






--
View this message in context: 
http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp5771084p5771280.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to