Add ability to use predefined ssl certificates for https endpoint. #2