Replace urllib2 calls with requests to avoid SNI issues - #3
Conversation
|
urllib2 support SNI on my debian jessie, so I guess your problem is elsewhere. See the example below run on python 2.7.9 ran on a webserver with more than 25 vitualhosts, each one with a different X.509 cert. |
|
I found this, maybe it will resolve your issue:
The packages are python-openssl, python-pyasn1 and python-ndg-httpsclient on debian like systems. |
|
@nitmir python-ndg-httpsclient is not available on ubuntu 14.04 lts. However, using requests works perfectly. |
|
thank you. |
Replace urllib2 calls with requests to avoid SNI issues
In our environment, despite the upgrade to python 2.7.11, urllib2 has compatibility issues with haproxy on https, probably because of SNI.
However, requests works flawlessly.
We only have a mama-cas server, so we unfortunately can't test each case.