disable ca check for https in 3rd/pykickstart/urlgrabber
authorJF Ding <jian-feng.ding@intel.com>
Thu, 8 Dec 2011 21:01:12 +0000 (05:01 +0800)
committerJF Ding <jian-feng.ding@intel.com>
Thu, 8 Dec 2011 21:01:12 +0000 (05:01 +0800)
mic/3rdparty/pykickstart/urlgrabber/sslfactory.py

index f7e6d3d7e4ed615294a111b5e6172d97f0d86442..07848dac7c3009d8e50223986a23d7364ddac4ec 100644 (file)
@@ -24,6 +24,7 @@ try:
     from M2Crypto import httpslib
     from M2Crypto import m2urllib2
 
+    SSL.Connection.clientPostConnectionCheck = None
     have_m2crypto = True
 except ImportError:
     have_m2crypto = False
@@ -48,7 +49,7 @@ if have_m2crypto:
             if ssl_ca_cert:
                 context = SSL.Context()
                 context.load_verify_locations(ssl_ca_cert)
-                context.set_verify(SSL.verify_peer, -1)
+                context.set_verify(SSL.verify_none, -1)
                 return context
             else:
                 return ssl_context