added support for ssl certs