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

Certificate path broken in Windows #703

Closed
justinmichael-stripe opened this issue Jan 29, 2021 · 0 comments · Fixed by #704
Closed

Certificate path broken in Windows #703

justinmichael-stripe opened this issue Jan 29, 2021 · 0 comments · Fixed by #704
Assignees

Comments

@justinmichael-stripe
Copy link

This line assembles the path to the certificates bundle included with the library:

os.path.dirname(__file__), "data/ca-certificates.crt"

However, Windows uses backslashes (\) for path separators, not forward slashes (as hard-coded above) which results in this code triggering an invalid path error.

This line should be altered to provide an OS-agnostic path that works in all environments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants