COOPR-492: Add ability to configure server to use TLS

Please review.