Hello everyone
I don't understand why specifying "https" scheme when https jetty consumer works fine only with "sslContextParameters" parameters. What do I indicate scheme htps or http nothing changes, although the examples indicate what you need https. https://camel.apache.org/components/latest/jetty-component.html [image: image.png] https://camel.apache.org/manual/latest/rest-dsl.html [image: image.png] I use 2.20.2 camel-version This works in simple jetty consumer -<route id="6f889c87-9c76-476b-b950-e14a314784ba"> -<from id="b0c0492e-806d-4fe7-9b46-18e6e49ae95e" uri="jetty:http://0.0.0.0:8888/http_out?sslContextParameters=#SSLContextParameters"> <description>HTTP</description> </from> -<to id="b2f059c2-87d2-4606-b2bf-667c9c20f25a" uri="activemq://VS.TEST.HTTP.IN?disableReplyTo=true"> </to> </route> </camelContext> -<bean name="SSLContextParameters" id="SSLContextParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.SSLContextParameters"> <property name="keyManagers" ref="KeyManagersParameters"/> </bean> -<bean name="KeyManagersParameters" id="KeyManagersParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.KeyManagersParameters"> <property name="keyStore" ref="KeyStoreParameters"/> <property name="keyPassword" value="123456"/> </bean> -<bean name="TrustManagersParameters" id="TrustManagersParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.TrustManagersParameters"> <property name="keyStore" ref="KeyStoreParameters"/> </bean> -<bean name="sslSender" id="sslSender" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.SSLContextParameters"> <property name="trustManagers" ref="TrustManagersParameters"/> </bean> -<bean name="KeyStoreParameters" id="KeyStoreParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.KeyStoreParameters"> <property name="Resource" value="/home/fesb/distribs/fesb/conf/ssl/fesb.jks"/> <property name="Password" value="123456"/> </bean> And this works in rest dsl to. -<camelContext xmlns="http://camel.apache.org/schema/spring" id="rest"> -<restConfiguration scheme="http" producerComponent="http" port="9090" host="0.0.0.0" contextPath="/fesb-rest" component="jetty" bindingMode="off"> <endpointProperty value="#RestSSLContextParameters" key="sslContextParameters"/> <dataFormatProperty value="true" key="prettyPrint"/> </restConfiguration> -<rest id="4f777f7b-f2fd-4107-8271-a50640d4525c" produces="application/json" path="/path"> -<get id="026ea872-e2f8-4772-8d10-6482b8549f11" produces="application/json" uri="/get"> <description/> <to uri="direct-vm://restLink"/> </get> </rest> </camelContext> -<bean id="RestKeyStoreParameters" name="RestKeyStoreParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.KeyStoreParameters"> <property value="/home/michael/IdeaProjects/server/fesb-manager/conf/ssl/fesb.jks" name="Resource"/> <property value="123456" name="Password"/> </bean> -<bean id="RestTrustManagersParameters" name="RestTrustManagersParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.TrustManagersParameters"> <property name="keyStore" ref="RestKeyStoreParameters"/> </bean> -<bean id="RestKeyManagersParameters" name="RestKeyManagersParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.KeyManagersParameters"> <property name="keyStore" ref="RestKeyStoreParameters"/> <property value="123456" name="keyPassword"/> </bean> -<bean id="RestSSLContextParameters" name="RestSSLContextParameters" factor:bean-type="DEFAULT" class="org.apache.camel.util.jsse.SSLContextParameters"> <property name="keyManagers" ref="RestKeyManagersParameters"/> </bean> -- *With best regards, Mikhail Lukyanov* *Tel: **+7-909-69-71-547*