title: CXF with Camel - HTTPS
body: <p>I am trying to implement a module to send messages from a CXF client to a server (SOAP endpoint) using HTTPS. I am able to achieve this by following the guide here: <a href="https://camel.apache.org/how-to-switch-the-cxf-consumer-between-http-and-https-without-touching-the-spring-configuration.html" rel="nofollow">https://camel.apache.org/how-to-switch-the-cxf-consumer-between-http-and-https-without-touching-the-spring-configuration.html</a></p>
  
  <p>The following configuration is key:</p>
  
  <pre><code>&lt;ctx:property-placeholder location="classpath:orderEntry.cfg" /&gt;
  &lt;!-- other properties --&gt;
  &lt;http:conduit name="{http://www.company.com/product/orderEntry/service/1}OrderEntry.http-conduit"&gt;
      &lt;http:tlsClientParameters disableCNCheck="true"&gt;
        &lt;sec:trustManagers&gt;
          &lt;sec:keyStore type="JKS" password="${trustStore.password}" file="${trustStore.file}"/&gt;
        &lt;/sec:trustManagers&gt;
        &lt;!-- other config --&gt;
      &lt;/http:tlsClientParameters&gt;
  &lt;/http:conduit&gt;
  </code></pre>
  
  <p>The above configuration refers to a config file that has these properties stored:</p>
  
  <pre><code>orderEntry.cfg
  --------------
  endpointUri=https://localhost:8181/OrderEntry
  trustStore.password=password
  trustStore.file=etc/myApp.ts
  </code></pre>
  
  <p>As noted earlier, I am able to send messages via https when I follow the guide. </p>
  
  <p>But I am concerned about the password being stored in plain text here. Is there a way that I can have the password wired from Java code (which can probably read the password from an encrypted source) and provide it to the http conduit when it needs it?</p>