[MacPorts] #55908: python27 @2.7.14: urlopen() with HTTPS fails with CERTIFICATE_VERIFY_FAILED

MacPorts noreply at macports.org
Thu Mar 1 09:50:19 UTC 2018


#55908: python27 @2.7.14: urlopen() with HTTPS fails with CERTIFICATE_VERIFY_FAILED
------------------------+----------------------
  Reporter:  artmatsak  |      Owner:  jmroot
      Type:  defect     |     Status:  assigned
  Priority:  Normal     |  Milestone:
 Component:  ports      |    Version:  2.4.2
Resolution:             |   Keywords:
      Port:  python27   |
------------------------+----------------------

Comment (by jmroot):

 There may be some environment variables or other configuration that affect
 where the ssl module will load CA certificates from. You can check if it's
 finding any certs with something like this:
 {{{
 import ssl
 s = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
 s.load_default_certs()
 s.cert_store_stats()
 }}}
 For me, the cert_store_stats() call returns:
 {{{
 {'x509': 133, 'x509_ca': 133, 'crl': 0}
 }}}

--
Ticket URL: <https://trac.macports.org/ticket/55908#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list