changes to support ssl with invalid certs
Merge pull request #1 from alanjones/master

changes to support ssl with invalid certs