enabling HTTPS endpoint