It depends on what your PEM file contains and what the server is requesting of you.
The PEM file may contain a private key for client SSL authentication, in which case you need to use the camel-http4 [1] sslContextParameters option to configure the keystore, key alias, keystore passwd, key passwd, etc. using the Camel JSSE Configuration Utility (modelled after CXF SSL config approach) as indicated in [2]. If the PEM file contains a certificate for the remote server which you need to trust, then you're probably better off adding it to your server's truststore and using the JVM options to pass in the location, password, etc. If you don't want to add the certificate to the server-wide truststore, you may use the JSSE Config Utility to configure it separately in this particular endpoint. [1] https://camel.apache.org/http4.html [2] https://camel.apache.org/http4.html#HTTP4-UsingtheJSSEConfigurationUtility *Raúl Kripalani* Apache Camel PMC Member & Committer | Enterprise Architect, Open Source Integration specialist http://about.me/raulkripalani | http://www.linkedin.com/in/raulkripalani http://blog.raulkr.net | twitter: @raulvk On Mon, Aug 31, 2015 at 11:47 PM, anish.somadevan <netan...@gmail.com> wrote: > Am trying to use Http4 or SSH components. Can you please let me know how to > resolve this issue using these components? > > Thanks, > Anish > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/PEM-File-for-Authentication-in-route-tp5771084p5771107.html > Sent from the Camel - Users mailing list archive at Nabble.com. >