Jetty SSL configuration Apache karaf -
i trying configure jetty work ssl in apache karaf osgi container. http works, https not work. problem?
my configuration details below:
etc/jetty.xml
<call name="addconnector"> <arg> <new class="org.eclipse.jetty.server.nio.selectchannelconnector"> <set name="host"> <property name="jetty.host" /> </set> <set name="port"> <property name="jetty.port" default="8282" /> </set> <set name="maxidletime">300000</set> <set name="acceptors">2</set> <set name="statson">false</set> <set name="confidentialport">8443</set> <set name="lowresourcesconnections">20000</set> <set name="lowresourcesmaxidletime">5000</set> </new> </arg> </call> <call name="addconnector"> <arg> <new class="org.eclipse.jetty.server.ssl.sslselectchannelconnector"> <arg> <new class="org.eclipse.jetty.http.ssl.sslcontextfactory"> <set name="keystore">/opt/keystore</set> <set name="keystorepassword">password</set> <set name="keymanagerpassword">password</set> <set name="truststore">/opt/keystore</set> <set name="truststorepassword">password</set> </new> </arg> <set name="port">8443</set> <set name="maxidletime">30000</set> </new> </arg>
entry in /etc/org.ops4j.pax.web.cfg file
org.ops4j.pax.web.config.file=${karaf.home}/etc/jetty.xml
to enable ssl, need enable using httpservice configuration. edit etc/org.ops4j.pax.web.cfg , add/alter following entries.
org.osgi.service.http.secure.enabled=true
more details on how configure pax web , httpservice can found @ official dokumentation, or integration tests
Comments
Post a Comment