Skip to content

Pem defaults to CRLF, and there is no way to configure it through rcgen #115

@frjonsen

Description

@frjonsen

When serializing to PEM, rcgen simply calls pem::encode.

The pem package defaults to using CRLF. To use LF, one must instead call the encode_config, but as far as I can tell there's no way of doing this through rcgen. Instead I have pull in the pem crate manually and duplicate what serialize_pem does. Admittedly the workaround is pretty minor, but most of all it's unexpected to get a PEM with CRLF linebreaks when working on Linux.

Would it perhaps be possible to change the serialize_pem functions and the other variants of the function to attempt to determine linebreaks from the current OS, or would that be considered too breaking?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions