Fixed port number, added ability to provide own certificate and key

I've also added some kind of backward compatibility, but I'm not sure how docker works here, so chck this out, please.

To access cert and key, files name "key" and "cert" should be placed i directory and container should be run with "-v directory:/root/certs" key.