Added HTTPS support

Added HTTPS support for secure sites