Hi every one,
Am using cxfEndpoint to expose my services as web services, now I would like
make this as secure by marking those HTTPS.
the following is my spring context file,
....
<cxf:cxfEndpoint id="httpEndpoint"
address="https://0.0.0.0:9001/MyService"
serviceClass="com.mycompany.WebServiceInerface"
endpointName="httpttrans:httptransferServiceEndpoint"
serviceName="httpttrans:httptransferService"
xmlns:httpttrans="https://httptransfer.mycompany.com/">
</cxf:cxfEndpoint>
<httpj:engine-factory bus="cxf">
<httpj:identifiedTLSServerParameters id="secure">
<httpj:tlsServerParameters>
<sec:keyManagers keyPassword="password">
<sec:keyStore type="JKS"
password="password" file="server.jks" />
</sec:keyManagers>
<sec:trustManagers>
<sec:keyStore type="JKS"
password="password" file="truststore.jks" />
</sec:trustManagers>
</httpj:tlsServerParameters>
</httpj:identifiedTLSServerParameters>
<httpj:engine port="0">
<httpj:tlsServerParametersRef id="secure" />
<httpj:threadingParameters minThreads="5"
maxThreads="10" />
<httpj:connector>
<beans:bean
class="org.mortbay.jetty.bio.SocketConnector">
<beans:property name="port"
value="9001" />
</beans:bean>
</httpj:connector>
<httpj:handlers>
<beans:bean
class="org.mortbay.jetty.handler.DefaultHandler" />
</httpj:handlers>
<httpj:sessionSupport>true</httpj:sessionSupport>
</httpj:engine>
</httpj:engine-factory>
When trying to run as server to publish my serivices, the following error is
observed.
"Protocol mismatch for port 9001: engine's protocol is http, the url
protocol is https"
Please guide me to resolve this issue ASAP.
Regards,
Chavva.
--
View this message in context:
http://camel.465427.n5.nabble.com/Configuring-cxfEndpoint-to-make-secure-HTTPS-need-help-tp4879695p4879695.html
Sent from the Camel - Users mailing list archive at Nabble.com.