add check for ssl.CertificateError
Merge pull request #704 from chrislea/master

Add check for ssl.CertificateError in netutil.py