Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'an ASCII string of one or more PEM-encoded certificates' needs to be unicode #73422

Closed
uzytkownik mannequin opened this issue Jan 11, 2017 · 2 comments
Closed

'an ASCII string of one or more PEM-encoded certificates' needs to be unicode #73422

uzytkownik mannequin opened this issue Jan 11, 2017 · 2 comments
Labels
docs Documentation in the Doc dir

Comments

@uzytkownik
Copy link
Mannequin

uzytkownik mannequin commented Jan 11, 2017

BPO 29236
Nosy @mkleehammer, @serhiy-storchaka

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2020-05-31.13:29:56.407>
created_at = <Date 2017-01-11.01:17:39.998>
labels = ['docs']
title = "'an ASCII string of one or more PEM-encoded certificates' needs to be unicode"
updated_at = <Date 2020-05-31.13:29:56.406>
user = 'https://bugs.python.org/uzytkownik'

bugs.python.org fields:

activity = <Date 2020-05-31.13:29:56.406>
actor = 'serhiy.storchaka'
assignee = 'docs@python'
closed = True
closed_date = <Date 2020-05-31.13:29:56.407>
closer = 'serhiy.storchaka'
components = ['Documentation']
creation = <Date 2017-01-11.01:17:39.998>
creator = 'uzytkownik'
dependencies = []
files = []
hgrepos = []
issue_num = 29236
keywords = []
message_count = 2.0
messages = ['285176', '370449']
nosy_count = 4.0
nosy_names = ['uzytkownik', 'mkleehammer', 'docs@python', 'serhiy.storchaka']
pr_nums = []
priority = 'normal'
resolution = 'out of date'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue29236'
versions = ['Python 2.7']

@uzytkownik
Copy link
Mannequin Author

uzytkownik mannequin commented Jan 11, 2017

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.

@uzytkownik uzytkownik mannequin added the topic-SSL label Jan 11, 2017
@uzytkownik uzytkownik mannequin assigned docspython Jan 11, 2017
@uzytkownik uzytkownik mannequin added the docs Documentation in the Doc dir label Jan 11, 2017
@tiran tiran removed the topic-SSL label Sep 6, 2017
@serhiy-storchaka
Copy link
Member

Python 2.7 is no longer supported.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir
Projects
None yet
Development

No branches or pull requests

2 participants