added support for https peer authentication.