How to set up a secure REST server with SSL