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

Exception handling for reading mo cert #133

Merged
merged 2 commits into from
Sep 14, 2022
Merged

Exception handling for reading mo cert #133

merged 2 commits into from
Sep 14, 2022

Conversation

ikaratass
Copy link
Collaborator

@ikaratass ikaratass commented Sep 12, 2022

fix #127
fix #94

root_cert = load_cert(root_cert_path)
verify_certs(leaf_cert, sub_ca_certs, root_cert)
except FileNotFoundError:
logger.warning(f"MO Root Cert can not be found {root_cert_path}")
Copy link
Contributor

Choose a reason for hiding this comment

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

Teeny tiny change - wouldn't "cannot" sound better than "can not"? Also "TODO GitHub#94" in the lines above can be removed now?

@ikaratass ikaratass merged commit 6ed1163 into master Sep 14, 2022
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.

If MO Root is not found it crashes the application Relax verify_certs requirement for root certificate
2 participants