Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
None
Description
Spark-java supports https from JKS keystore.
We can simply provide some configuration options for it :
```
- Defaults to false
https.enabled=false
- Compulsory when enabling HTTPS
#https.keystore=/path/to/keystore
#https.password=password
- Optional when enabling HTTPS (self signed)
#https.trust.keystore
#https.trust.password
```
Can be tested with a CURL request. For instance :
```
% curl -XGET -k https://127.0.0.1:34895/domains
["horizon","localhost.","127.0.0.1"]
```
However, configuration is now very simple (isEnable + port) and we pass it directly through constructor. We might need to rework configuration, and extract it to an other object.