This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eht16
Recipients Arfrever, benjamin.peterson, berker.peksag, crazyjurich, demian.brecht, eht16, orsenthil
Date 2015-01-21.20:21:47
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1421871707.99.0.179045365507.issue23166@psf.upfronthosting.co.za>
In-reply-to
Content
I got the same error suddenly with Python 2.7.9.

I think this is quite unfortunate because it somewhat breaks existing behaviour, especially that SSL certificate verification is enabled by default.
Don't get me wrong, this is the right thing in general and it is important. Still, adding this feature in a 2.7 patch level release and enabling it by default feels quite hard.
I guess this will break many scripts and applications which rely on non-verification of SSL certs (which is bad but it was the exisiting behaviour).

Anyway, attached is my use case where I use a HTTPS request coupled with HTTP basic authentication and disabled SSL cert verification.
As described above, passing a context to urlopen() will override previously configured handlers, unfortunately.

In the attached script there is also a workaround which works for me by not using urlopen() but instead calling opener.open() manually after adding the necessary handlers myself.
Not nice but works for the moment.
History
Date User Action Args
2015-01-21 20:21:48eht16setrecipients: + eht16, orsenthil, benjamin.peterson, Arfrever, berker.peksag, demian.brecht, crazyjurich
2015-01-21 20:21:47eht16setmessageid: <1421871707.99.0.179045365507.issue23166@psf.upfronthosting.co.za>
2015-01-21 20:21:47eht16linkissue23166 messages
2015-01-21 20:21:47eht16create