Skip to content

Create (or convert) private key in DER format #843

Open
@fh-yuxiao-zeng

Description

@fh-yuxiao-zeng
SUMMARY

Can we make it possible to create / convert private key in DER format?

ISSUE TYPE
  • Feature Idea
COMPONENT NAME

community.crypto.openssl_privatekey, and maybe community.crypto.openssl_privatekey_convert

ADDITIONAL INFORMATION

Java accepts private keys in DER. It doesn't have native support for PEM.

For example, I'm trying to create a client key / certificate for a PostgreSQL database server. The JDBC driver says "The key file must be in PKCS-12 or in PKCS-8 DER format." (https://jdbc.postgresql.org/documentation/use/)

Currently the module can generate PKCS-8 format, but it seems to be PEM always. It will be very helpful if the ansible module can directly generate a key in DER format, or at least support a conversion

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions