[issue22835] urllib2/httplib is rendering 400s for every authenticated-SSL request, suddenly
Antoine Pitrou
report at bugs.python.org
Tue Nov 11 10:43:26 CET 2014
Antoine Pitrou added the comment:
Le 11/11/2014 07:50, Dustin Oprea a écrit :
>
> Dustin Oprea added the comment:
>
> I think I was getting mixed results by using requests and urllib2/3. After nearly being driven crazy, I performed the following steps:
>
> 1. Recreated client certificates, and verified that the correct CA was being used from Nginx.
>
> 2. Experimenting using an SSL-wrapped client-socket directly, in tandem with s_client.
>
> 3. I then removed all of my virtualhosts except for a new one that pointed to a flat directory, just to make sure that I wasn't activating the wrong virtualhost, and there weren't any other complexities.
>
> 4. Implemented a bonafide, signed, SSL certificate on my local system, and overriding the hostname using /etc/hosts.
>
> 5. This got me past the 400.
Ah! Perhaps your HTTPS setup was relying on SNI to select the proper
virtual host ?
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue22835>
_______________________________________
More information about the Python-bugs-list
mailing list