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

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

Open
tometzky opened this issue Sep 5, 2021 · 1 comment
Open

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

tometzky opened this issue Sep 5, 2021 · 1 comment

Comments

@tometzky
Copy link
Contributor

tometzky commented Sep 5, 2021

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.

@zenhack
Copy link
Owner

zenhack commented Sep 6, 2021 via email

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

No branches or pull requests

2 participants