-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
openssl_privatekey: add support for format option #60388
openssl_privatekey: add support for format option #60388
Conversation
What's missing is a proper detection what the current format of a PEM key is (https://github.com/ansible/ansible/pull/60388/files#diff-f47facfb3118315473f7ea281891f42fR649). Everything else is there. |
c95a760
to
c537d6c
Compare
(During rebase, I squashed to commits so far.) I probably won't have time to work on this before 2.9 feature freeze, so if anyone is interested in getting this into Ansible 2.9, please help with the key format identification part :) (Also, raw format support might not work properly since loading keys assumes PEM.) |
dca1886
to
6a20a3a
Compare
I now added a proper key format identification (based on the OpenSSL code, thanks @bkmeneguello for the pointer), and some more tests. |
The test
The test
|
Amazing work, I'll review ASAP |
I'm right now adding another option |
If sanity checks don't have any surprises, I should be done for now. At least locally, the tests ran through :) |
Tests pass. \o/ ready_for_review |
shipit |
@bkmeneguello @Shaps thanks a lot for reviewing this! :) |
SUMMARY
Fixes #59253.
WIP since some things are missing:idempotencyintegration testsISSUE TYPE
COMPONENT NAME
openssl_privatekey