Fix port, add ability to provide own ssl cert
Add backward compatibility for ssl cert sharing