added https suppoert (use -ssl <keyfile> <certfile> command line parameter)