Getting WARNING:requests.packages.urllib3.contrib.pyopenssl when using python requests
See original GitHub issueHi, I’m using python’s requests module to make some API calls. Starting about a week ago, I get this warning message related to urllib3 every time I make a call:
WARNING:requests.packages.urllib3.contrib.pyopenssl:A problem was encountered with the certificate that prevented urllib3 from finding the SubjectAlternativeName field. This can affect certificate validation. The error was Codepoint U+002A at position 1 of u’*’ not allowed
/Library/Python/2.7/site-packages/requests/packages/urllib3/connection.py:337: SubjectAltNameWarning: Certificate for plasma-ticket.geo.apple.com has no subjectAltName
, falling back to check for a commonName
for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
SubjectAltNameWarning
Module versions: urllib3==1.10.4 requests==2.12.4 pyOpenSSL==0.15.1
An example of a requests call (I’m using a few different ones, but they all follow this same format):
response = requests.post(<url>, data = json.dumps(data), headers = self.headers) response_json = json.loads(response.content)
One note (that seems strange to me) is that I have logging set up using python’s logging module, and instead of these messages showing up in my .log file, they only show in my terminal window. Don’t know if that’s useful at all.
Thanks
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Hey @jcalabro, thanks for reporting this! Can you open a separate issue with your exact Python version and the contents of
python -m pip freeze
for your minimal-reproducing case?That seems to have done it! Thanks for the help!