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

Issue 4 check valid chain #6

Merged
merged 2 commits into from
Oct 14, 2022
Merged

Issue 4 check valid chain #6

merged 2 commits into from
Oct 14, 2022

Conversation

CharString
Copy link
Contributor

@CharString CharString commented Oct 13, 2022

Adds a check that uses pyOpenSSL to validate whether the uploaded chain in the pem ends in the trusted system root CA's as requested in #4.

Uses pyOpenSSL primitives to approximately check the validity of a
chain. And instead of using pem's in the repo that will expire, it
creates temporary fixture certificates.

Someday there might be a correct abstraction in the cryptography
library. See:
pyca/cryptography#6229
pyca/cryptography#2381
Copy link
Member

@joeribekker joeribekker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This requires a certificate to always be a full chain (not functionally, but to show a green icon) but let's see if this brings what we need.

@joeribekker joeribekker merged commit 6f2c0e8 into main Oct 14, 2022
@joeribekker joeribekker deleted the issue-4-check_valid_chain branch October 14, 2022 13:13
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 this pull request may close these issues.

None yet

2 participants