Closed techtonik closed 8 years ago
Testcase:
import urllib2
urllib2.urlopen('https://codereview.appspot.com')
Works for me. Are you behind a corporate firewall?
@phistuck no, Vista SP2.
urllib2.urlopen('https://www.python.org') works ok.
Posted a question to StackOverflow - https://stackoverflow.com/questions/33140382/troubleshooting-ssl-certificate-verify-failed-error
As already mentioned on the mailing list, connecting to codereview.appspot.com works for me too:
$ python
Python 2.7.10 (default, Sep 8 2015, 17:20:17)
[GCC 5.1.1 20150618 (Red Hat 5.1.1-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import urllib2
>>> resp = urllib2.urlopen("https://codereview.appspot.com")
>>> print(resp.code)
200
>>>
Closing this issue. The SO thread has some answers on this topic. In short, the OS on the client side needs to support this. Nothing we can do here.
@andialbrecht upload.py
is not functional on Windows. Why are you closing this ticket? We need to find a solution.
If we won't find the solution, I think it is right to close the ticket when/if Python 2.7.11 is out or its OpenSSL update.
The short term solution may be in shipping codereview.appspot.com certificate with upload.by, even though it is flaky.
@techtonik - it is functional on Windows, it is not functional on your Windows. I am not sure anyone works with Windows Vista on Chrome, though, which is why this may not be maintained as well as more popular versions.
@phistuck are you sure you have Windows + Python 2.7.10 + _ssl.pyd OpenSSL 1.0.2a ? If yes, then I may look further.
IMO that's something that needs to be fixed in Python (or maybe even on the client since Python 2.7.10 and Win7 works).
I don't think it's a good idea to maintain certificates here in this repo. They go out-of-sync sooner or later and may introduce security risks. What I could think of is adding some kind of "--cert" flag where it's upon the user to use this flag and provide certificates on his own.
@andialbrecht the upload.py
script downloaded from https://codereview.appspot.com may include its own certificate embedded.
I can't upload review to https://codereview.chromium.org What's wrong with this certificate stuff? It is Python 2.7.10