Skip to content

Myria REST server SSL support

Daniel Halperin edited this page Mar 2, 2015 · 3 revisions

Myria supports SSL for the REST server. The configuration is done via the sqlite3 master catalog.

  1. Create a Java keystore that contains the SSL public and private keys. I followed the instructions here: http://stackoverflow.com/a/17710626/1715495

  2. Set the right values in the master configuration:

insert into configuration(key,value) VALUES ('myria.master_api_server.ssl.keystore_path', 'rest.myria.cs.washington.edu.jks'); insert into configuration(key,value) VALUES ('myria.master_api_server.ssl.keystore_password', 'KEYSTORE_PASSWORD_GOES_HERE');


3. Make sure you put the keystore at the right path.

Whenever the [configuration values](https://github.com/uwescience/myria/blob/56de54ce9993bde0289fa2dee08ba9319ff15799/src/edu/washington/escience/myria/api/MyriaApiConstants.java#L21) in step 2 are set, [Myria will enable SSL](https://github.com/uwescience/myria/blob/56de54ce9993bde0289fa2dee08ba9319ff15799/src/edu/washington/escience/myria/api/MasterApiServer.java#L49). 

Clone this wiki locally