added mock https server
added unit tests and support for self signed certificates in https endpoints