Added ability to accept all SSL certificates

This allows permissive ssl which works in the case of self signed certs.