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

cryptography backend: parse dirName, RID and otherName names #9

Conversation

felixfontein
Copy link
Contributor

@felixfontein felixfontein commented Mar 30, 2020

SUMMARY

(Port of ansible/ansible#67669 to community.crypto. I'm copying its description.)

These weren't supported so far. Prompted by a question on the ansible-project mailing list.

While adding tests, I noticed that it is pretty much impossible to use dirName with the pyOpenSSL backend, since the functions are designed to work with a OpenSSL config file (the syntax is dirName:sectionName, and sectionName is supposed to be a section name in that config file - not very helpful); and support for otherName is only partial: while it supports more complex ways of specifying it (you can specify the ASN.1 type and the value in a readable form), it can't parse the result: it will always be printed as <unsupported>.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

plugins/module_utils/crypto.py
openssl_csr
openssl_csr_info
x509_certificate
x509_certificate_info

@felixfontein felixfontein force-pushed the parse-dirname-rid-othername branch from 8a82414 to deb3d08 Compare May 12, 2020 11:07
@felixfontein
Copy link
Contributor Author

ready_for_review

@felixfontein felixfontein mentioned this pull request Jun 20, 2020
@MarkusTeufelberger
Copy link
Contributor

Looks good to me

shipit

@felixfontein felixfontein merged commit cb38444 into ansible-collections:master Jun 21, 2020
@felixfontein felixfontein deleted the parse-dirname-rid-othername branch June 21, 2020 20:47
@felixfontein
Copy link
Contributor Author

@MarkusTeufelberger thanks a lot for reviewing this!

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.

2 participants