-
Notifications
You must be signed in to change notification settings - Fork 90
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
Refactor module_utils/crypto.py #27
Refactor module_utils/crypto.py #27
Conversation
(Unstable CI is caused by #23 and unrelated to this PR.) |
70304f0
to
1bdfbaa
Compare
I moved some generic file I/O methods ( I also added a new support function for obtaining the serial number of a |
I've added some compatibility code to |
(The current error in macOS is caused by pyca/cryptography#5215) |
@MarkusTeufelberger @puiterwijk @Spredzy @Shaps @ctrufan I would be really happy if you could review this PR :) |
Apologies, I've been super busy - I should have a chance to retest the ecs_certificate module some time this week. I'll see if I can find time this weekend to review the PR as well. |
The problem with cryptography on old macOS versions has been resolved with the release of cryptography 2.9.2. Now it's back to "unstable" as before. |
Looks good to me, let's move this forward. Thanks for the work, Felix! |
I'll merge this now, so work can continue ;) @MarkusTeufelberger thanks for checking this! @ctrufan the change should be pretty safe for the ecs_* modules, but it probably won't hurt when you test it at some point. You should definitely test it before we release 1.0.0 of the collection anyway ;) |
SUMMARY
Expands the large monolithic
plugins/module_utils/crypto.py
into a Python packageplugins/module_utils/crypto/
with multiple smaller files.This should not change functionality at all (except fix a tiny bug in x509_crl.py I found while changing this). CI should check essentially everything, except
ecs_certificate
(and the ECS part ofx509_certificate
) - @ctrufan can you test it?I've used pylint and flake8 to check for errors (and clean up unnecessary imports), so the change should be pretty safe.
Fixes #16.
CC @MarkusTeufelberger @puiterwijk @Spredzy @Shaps @ctrufan
ISSUE TYPE
COMPONENT NAME
plugins/module_utils/crypto.py