Added flag to allow invalid SSL Certificates. Useful for testing