Skip to content

No newline at end of pem file - gets mangled when concatenated #149

@tometzky

Description

@tometzky

Please ensure that the pem files generated by simp_le always end with a newline, so they can be joined together just by using cat. For example:

$ cat cert.pem chain.pem

It should create a valid pem file, but instead it creates a file looking like this:

-----BEGIN CERTIFICATE-----
…
-----END CERTIFICATE----------BEGIN CERTIFICATE-----
…
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
…
-----END CERTIFICATE-----

Which causes errors like for example:

Fatal: Can't load ssl_cert: error:0906D066:PEM routines:PEM_read_bio:bad end line

I think it worked correctly a few months ago, but stopped working recently. I noticed it broke my service when I renewed some cert today. It is possible that Let's Encrypt changed the way they return certificates - maybe they stopped adding those newlines on their side.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions