Title: 'an ASCII string of one or more PEM-encoded certificates' needs to be unicode
Type: Stage:
Components: Documentation Versions: Python 2.7
Status: open Resolution:
Dependencies: Superseder:
Assigned To: docs@python Nosy List: docs@python, mkleehammer, uzytkownik
Priority: normal Keywords:

Created on 2017-01-11 01:17 by uzytkownik, last changed 2017-09-06 19:44 by christian.heimes.

Messages (1)
msg285176 - (view) Author: Maciej Piechotka (uzytkownik) Date: 2017-01-11 01:17
In documentation it is specified that cadata parameter in load_verify_locations is 'an ASCII string of one or more PEM-encoded certificates'. However the code is actually determining it based on PyUnicode_Check function so the 'ASCII string' actually needs to be unicode object. In Python 3 it seems to be fixed by checking by PyObject_GetBuffer.
Date User Action Args
2017-09-06 19:44:41christian.heimessetcomponents: - SSL
2017-01-25 21:01:56mkleehammersetnosy: + mkleehammer
2017-01-11 01:17:40uzytkownikcreate