-
Notifications
You must be signed in to change notification settings - Fork 92
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
Error_Packet_Parsing with Netscape Comment in Certificate #242
Comments
it's definitely a low level problem either in x509 or in asn.1 (not tls fault I would assume). Any chance this certificate is public (or worse case can be send to me semi-privately) ? |
Sorry, it's a company cert :-( |
x509 certs don't contain private information, there's no non-public cryptographic material (AFAIK). In any case, if I can't see the cert or something exhibiting the exact same problem, I won't be able to help/fix the issue. As a tip, you can use the |
Our admins created a certificate showing the same problem which I am allowed to give away. How could I get this to you? |
send it to my email (listed on github) |
You have mail :-) Thanx for looking into this! |
What is the status on this issue? I couldn't reproduce with a certificate I generated. Looking at those 23 certificates, the OctetString containing the ASN.1 of the extension value is padded with an extra 0x00 byte. |
@nikomi could you re-try using x509-1.7.1 ? It should be fixed now I think, the netscape comment extension violate all the other extension format, which is a bytestring that contains ASN1, but in the case of netscape comment it just contains a ascii string. |
I also have run into an example certificate that exhibits the problem. The Netscape comment is encoded directly as the octet string of the extension, from
while when I ask OpenSSL to generate a "Netscape Comment" extension with payload "This is a comment", I get:
Which has tag(22) and length (17). So it seems that the standard encoding of Netscape Comments is as an IA5String, but openssl also accepts a variant form with no tag/length: Attaching normal.pem.txt The parser reports the same value when asked for "text":
This variant of an extension we can safely ignore should not I think prevent processing of the certificate as a whole. |
Sorry, I've been on holiday... I'll try to test the new lib as soon as I get hold of a colleague I need to do this. thanx for your support! |
I can confirm that the site with the variant Netscape comment in its certificate works with x509-1.7.1. Will let you know if anything else breaks... |
let's close for now, and if this is not sorted you're both welcome to create a new issue. |
Sorry, I have not managed to grab the colleague yet... holiday season takes it's toll... I whole-heartedly agree to close this for now, and thanks again for your support! |
Hi,
while testing 1.3.11 we found the following issue when connecting to a server providing a certificate containing a
Netscape Comment
extension:See http://www.alvestrand.no/objectid/2.16.840.1.113730.1.13.html
This is waht OpenSSL says the certificate contains:
Do you think the problem could be in TLS or rather in the ASN.1 libs?
The text was updated successfully, but these errors were encountered: