[issue29236] 'an ASCII string of one or more PEM-encoded certificates' needs to be unicode

New submission from Maciej Piechorka: 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. ---------- assignee: docs@python components: Documentation, SSL messages: 285176 nosy: docs@python, uzytkownik priority: normal severity: normal status: open title: 'an ASCII string of one or more PEM-encoded certificates' needs to be unicode versions: Python 2.7 _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29236> _______________________________________

Changes by Michael Kleehammer <michael@kleehammer.com>: ---------- nosy: +mkleehammer _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29236> _______________________________________

Changes by Christian Heimes <lists@cheimes.de>: ---------- components: -SSL _______________________________________ Python tracker <report@bugs.python.org> <http://bugs.python.org/issue29236> _______________________________________

Serhiy Storchaka <storchaka+cpython@gmail.com> added the comment: Python 2.7 is no longer supported. ---------- nosy: +serhiy.storchaka resolution: -> out of date stage: -> resolved status: open -> closed _______________________________________ Python tracker <report@bugs.python.org> <https://bugs.python.org/issue29236> _______________________________________
participants (4)
-
Christian Heimes
-
Maciej Piechorka
-
Michael Kleehammer
-
Serhiy Storchaka