Revert "cleanup server SSL"

This reverts commit c88c3dc8d1ee50417ff1dc6756087e0f5d340ac5.
redo server.js SSL cleanup