Added support for self-signed certs on HTTPS