Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
SensiNact/gateway-felix-configuration
< SensiNact
Revision as of 12:36, 19 March 2018 by Jbotnascimento.gmail.com (Talk | contribs) (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...")
Contents
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.apache.felix.https.keystore=load/rest/your_keystore_file org.apache.felix.https.keystore.password=your_password org.apache.felix.https.keystore.key.password=your_key_password