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

[FEATURE REQUEST] x509 modules: support different output formats #63249

Closed
lkubb opened this issue Dec 7, 2022 · 0 comments · Fixed by #63099
Closed

[FEATURE REQUEST] x509 modules: support different output formats #63249

lkubb opened this issue Dec 7, 2022 · 0 comments · Fixed by #63099
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage

Comments

@lkubb
Copy link
Contributor

lkubb commented Dec 7, 2022

Is your feature request related to a problem? Please describe.
There are multiple serialization formats for x509-related types, depending on the type (private key/public key/CSR/CRL/certificate). I would like to use Salt states to generate them in the format I require directly: DER/PEM for all, additionally PKCS#12 and PKCS#7 for certificates.

Describe the solution you'd like
Add an encoding parameter to the corresponding functions in the x509 modules.

Describe alternatives you've considered
Manage the PEM and shell out or (for PKCS#12) use tls.create_pkcs12.

Additional context
#63099

@lkubb lkubb added Feature new functionality including changes to functionality and code refactors, etc. needs-triage labels Dec 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature new functionality including changes to functionality and code refactors, etc. needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant