camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peter.berkman" <peter.berk...@cornergrove.com>
Subject Configuring HTTPS for CXF
Date Fri, 09 Nov 2012 16:47:31 GMT
I am still struggling with this HTTP vs HTTPS issue.  The exception I get is:
    org.apache.camel.RuntimeCamelException: java.lang.RuntimeException:
Protocol mismatch for port 9002: engine's protocol is http, the url protocol
is https

I'm running the latest version of Camel and CXF on Glassfish 3.1.2.

Here is how I have it configured - does anyone see anything obvious?:

{code}
	<http:destination
name="{urn:ihe:iti:pdqv3:2007}pdqSupplierPort.http-destination">
	</http:destination>
	
	<httpj:engine-factory bus="cxf">
	
		<httpj:engine port="${nextgate.ms.hl7v3.pdq.listenport}">
		
			<httpj:tlsServerParameters>
			
				<sec:keyManagers keyPassword="${nextgate.ms.sec.privatekey.password}">
					<sec:keyStore type="JKS"
password="${nextgate.ms.sec.keystore.password}"
file="${nextgate.ms.sec.keystore.file}" />
				</sec:keyManagers>
				
				<sec:trustManagers>
					<sec:keyStore type="JKS"
password="${nextgate.ms.sec.truststore.password}"
file="${nextgate.ms.sec.truststore.file}" />
				</sec:trustManagers>
				
				<sec:cipherSuitesFilter>
					<sec:include>.*_EXPORT_.*</sec:include>
					<sec:include>.*_EXPORT1024_.*</sec:include>
					<sec:include>.*_WITH_DES_.*</sec:include>
					<sec:include>.*_WITH_NULL_.*</sec:include>
					<sec:exclude>.*_DH_anon_.*</sec:exclude>
				</sec:cipherSuitesFilter>
				
				<sec:clientAuthentication want="false" required="false" />
				
			</httpj:tlsServerParameters>
			
			<httpj:sessionSupport>true</httpj:sessionSupport>
		</httpj:engine>
	</httpj:engine-factory>

	<cxf:cxfEndpoint	id="pdqSupplierEndpoint"   
					
address="https://${nextgate.ms.hl7v3.pdq.listenaddr}:${nextgate.ms.hl7v3.pdq.listenport}/services/PDQSupplier"
						endpointName="ssp:pdqSupplierPort"
						serviceName="ssp:pdqSupplierService"
						serviceClass="ihe.iti.pdqv3._2007.PDQSupplierPortType"
						xmlns:ssp="{urn:ihe:iti:pdqv3:2007}">
		
		<cxf:binding>
			<soap:soapBinding mtomEnabled="true" version="1.2" />
		</cxf:binding>

	</cxf:cxfEndpoint>

{code}



--
View this message in context: http://camel.465427.n5.nabble.com/Configuring-HTTPS-for-CXF-tp5722427.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message