Skip to content
This repository has been archived by the owner on Mar 3, 2024. It is now read-only.

Latest commit

 

History

History
52 lines (33 loc) · 1.36 KB

readme.md

File metadata and controls

52 lines (33 loc) · 1.36 KB

feature:repo-add mvn:de.mhus.osgi/mhus-features/7.0.0-SNAPSHOT/xml/features feature:install mhu-osgi-base feature:install http

install -s mvn:de.mhus.app/web-api/1.0.0-SNAPSHOT install -s mvn:de.mhus.app/web-core/1.0.0-SNAPSHOT install -s mvn:de.mhus.app/web-util/1.0.0-SNAPSHOT

install -s mvn:de.mhus.app/web-jetty/1.0.0-SNAPSHOT


Use javaxt http server

  1. Install javaxt port and javaxt connector

install -s mvn:de.mhus.ports/ports-javaxt/1.3.6-SNAPSHOT install -s mvn:de.mhus.app/web-javaxt/1.0.0-SNAPSHOT

  1. Modify configuration (optional)

mhus-config.xml default values:

<de.mhus.app.web.javaxt.JavaXtServer ssl="false" port="9080" threads="50" keystore="etc/keystore.jks" keystorePassword="password" truststore="etc/truststore.jks" truststorePassword="password" />

  1. Enable SSL (Optional)

To enable ssl the minimum configuration must be

<de.mhus.app.web.javaxt.JavaXtServer ssl="true" />

create the key files using the keytool, by default they are located in the karaf/etc directory:

keytool -genkeypair -alias certificatekey -keyalg RSA -keysize 2048 -keystore etc/keystore.jks keytool -export -alias certificatekey -keystore etc/keystore.jks -rfc -file etc/selfsignedcert.cer keytool -import -alias certificatekey -file etc/selfsignedcert.cer -keystore etc/truststore.jks