<div dir="ltr">Looking at test cases <a href="https://github.com/openssl/openssl/blob/OpenSSL_1_1_1-stable/test/recipes/04-test_pem.t">https://github.com/openssl/openssl/blob/OpenSSL_1_1_1-stable/test/recipes/04-test_pem.t</a> , openssl indeed is a parser that can handle other line sizes than 64 chars. If we were to strictly follow RFC, shouldn't we error out none 64 line size (except last line which could be equal or less than 64)? Leaving it "undefined behavior" would invite issues.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Feb 25, 2021 at 2:57 AM Matthias Buehlmann <<a href="mailto:Matthias.Buehlmann@mabulous.com">Matthias.Buehlmann@mabulous.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto"><pre style="font-size:1em;margin-top:0px;margin-bottom:0px;break-before:page">„Parsers MAYhandle other line sizes.These requirements are consistent with PEM [<a href="https://tools.ietf.org/html/rfc1421" title=""Privacy Enhancement for Internet Electronic Mail: Part I: Message Encryption and Authentication Procedures"" target="_blank">RFC1421</a>].“</pre></div><div dir="auto"><br></div><div dir="auto">It‘s not a bug, it‘s undefined behaviour.</div></div><div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 24 Feb 2021 at 20:20 Frank Liu <<a href="mailto:gfrankliu@gmail.com" target="_blank">gfrankliu@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I noticed openssl 1.0.1 and 1.0.2 
can't read a certificate PEM file with base64 line size of multiples of 
1265. Any other line size seems to be fine, even though rfc7468 says 
"exactly 64 characters except for the final line".</div><div><br></div><div>The same pem file can be read fine with latest openssl 1.1.1j. Does anybody know the bug or PR when that was fixed?</div><div><br></div><div>Thanks!</div></div><div dir="ltr"><div>Frank<br></div></div>
</blockquote></div></div>
</blockquote></div>