Hi all,
 
I'm trying to connect to a HTTPS endpoint like
 
 <!-- reference to NoopHostnameVerifier -->
<bean id="noopHostnameVerifier" 
class="org.apache.http.conn.ssl.NoopHostnameVerifier"/>

<sslContextParameters id="sslContextParameters" 
xmlns="http://camel.apache.org/schema/blueprint";>
<keyManagers keyPassword="xxx">
<keyStore resource="{{karaf.home}}/etc/casisp.p12" password="xxx"/>
</keyManagers>
<trustManagers>
<keyStore resource="{{karaf.home}}/etc/truststore.jks" password="xxx"/>
</trustManagers>
</sslContextParameters>

<camelContext id="isp.route.system.deployment.service.scheduler" 
xmlns="http://camel.apache.org/schema/blueprint"; streamCache="true">
...
 
<to 
uri='{{casisp.casrdh.url}}/api/v1/entity/integrationservice/delta?x509HostnameVerifier=noopHostnameVerifier&amp;sslContextParameters=#sslContextParameters'
 />
With this I'm getting an error
 
“trustAnchors parameter must be non-empty”
 
Both, keystore and truststore, are available in the etc folder. Any hints?
 
 
P.S. Can I completely disable the SSL validation? In earlier Camel versions it 
worked with the x509HostnameVerifier=noopHostnameVerifier
 
Camel is v3.20.2
 
Best
Gerald

Reply via email to