Opened 9 years ago

Closed 8 years ago

#49408 closed defect (invalid)

ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Reported by: tessus (Helmut K. C. Tessarek) Owned by: jyrkiwahlstedt
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: petrrr
Port: python27

Description

I ran into the following error when running a python script (this error did not happen 2 weeks ago):

Traceback (most recent call last):
  File "script.py", line 9, in <module>
    conn.request('GET', '/web/Usage/UsageSummaryRecords?$filter=IsCurrent%20eq%20true', '', headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1053, in request
    self._send_request(method, url, body, headers)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1093, in _send_request
    self.endheaders(body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1049, in endheaders
    self._send_output(message_body)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 893, in _send_output
    self.send(msg)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 855, in send
    self.connect()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 1274, in connect
    server_hostname=server_hostname)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 352, in wrap_socket
    _context=self)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 579, in __init__
    self.do_handshake()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 808, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)

Important: the certificate is perfectly valid. The root cert is in the /opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/certifi/cacert.pem file and the cert has not expired. You can check for yourself: https://api.teksavvy.com

I do not see this error, when choosing python27-apple, python26-apple, python26 with port select. It only happens with python27.

Change History (4)

comment:1 Changed 9 years ago by petrrr

Cc: petr@… added

Cc Me!

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Owner: changed from macports-tickets@… to jwa@…

In the future, please Cc the port maintainers (port info --maintainers python27), if any.

comment:3 Changed 9 years ago by tessus (Helmut K. C. Tessarek)

Sorry, my bad. I will do that in the future.

Yesterday I ran port upgrade outdated and py27-sip was updated. Since then, the error is gone.

I think you can close this ticket.

comment:4 Changed 8 years ago by jyrkiwahlstedt

Resolution: invalid
Status: newclosed

Closing ticket per request

Note: See TracTickets for help on using tickets.