Chain/fullchain file contains unexpected characters
Chain file contains unexpected characters also partially in DOS format (with CRLF)
While obtaining a certificate using certbot 0.28.0 the saved chain file contains additional characters at the beginnig (the last 35 bytes from the cert file, including the string -----END CERTIFICATE-----)
Also the chain file is in DOS/Windows line ending format compared to he certificate which is in the normal Linux line ending format.
The resulted fullchain file also contain the surplus lines between the certificate and the intermediate chain certificate. Also the resulted fullchain file has a mixture of lineendings (the certificate part with Linux line ending, and the chain part with dos/windows line ending).
however this is not a critical bug, usually every software can handle this malformed file, but would be nice to have a fix for this.
Otherwise a great service. Congratulations for it !
-
Hi Jozsef Szilagyi
Thanks for raising this question and feedback! We have verified our implementation
and the chain, as returned from API and didn’t find any divergences from
https://tools.ietf.org/html/rfc8555#section-9.1 that refers to the
https://tools.ietf.org/html/rfc7468
Chain has following format:
-----BEGIN CERTIFICATE-----CRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXCRLF -----END CERTIFICATE-----CRLF -----BEGIN CERTIFICATE-----CRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXCRLF XXXXXXXXXXXXXXXXXXCRLF -----END CERTIFICATE-----CRLF
Please let us know if you see we are missing something.
Regards,
Andriy