Fixes

* Default SSL port is now used correctly
* Added separate optional environment variable for specifying the client port