Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "SensiNact/gateway-felix-configuration"

(Created page with "== Configuration of Felix == === Enable the HTTPS === By default, the sensiNact REST API is available using the HTTP protocol. Enabling the HTTPS requires a keystore and to...")
 
Line 18: Line 18:
 
You also need to uncomment the following lines:
 
You also need to uncomment the following lines:
  
<pre>org.apache.felix.http.enable=false
+
<pre>
 +
org.apache.felix.http.enable=false
 
org.apache.felix.https.enable=true
 
org.apache.felix.https.enable=true
org.apache.felix.https.keystore=load/rest/your_keystore_file
+
org.osgi.service.http.port.secure=443
org.apache.felix.https.keystore.password=your_password
+
org.apache.felix.https.keystore=/you_datastore/keystore.jks
org.apache.felix.https.keystore.key.password=your_key_password</pre>
+
org.apache.felix.https.keystore.password=key_store_password
 +
org.apache.felix.https.keystore.key.password=key_password
 +
</pre>
 +
 
 +
==== Configuring the felix ====

Revision as of 03:40, 4 April 2018

Configuration of Felix

Enable the HTTPS

By default, the sensiNact REST API is available using the HTTP protocol. Enabling the HTTPS requires a keystore and to configure Felix to use it.

Generating a keystore

If you don't have a keystore, you need to generate one. Here is the procedure to generate this keystore.

You then needs to copy this keystore in the $SNA_ROOT/load/rest/

Configuring the felix

To enable the HTTPS protocol, you need to comment the following line in the $SNA_ROOT/conf/config.properties file (add a # before the line you want to comment):

#org.osgi.service.http.port=8080

You also need to uncomment the following lines:

org.apache.felix.http.enable=false
org.apache.felix.https.enable=true
org.osgi.service.http.port.secure=443
org.apache.felix.https.keystore=/you_datastore/keystore.jks
org.apache.felix.https.keystore.password=key_store_password
org.apache.felix.https.keystore.key.password=key_password

Configuring the felix

Back to the top