rusticata / x509-parser

X.509 parser written in pure Rust. Fast, zero-copy, safe.
Other
206 stars 67 forks source link

NomError(Eof) #157

Closed xdm67x closed 5 months ago

xdm67x commented 5 months ago

Hi,

I wanted to know more about the x509 parser and today I got an issue with a NomError(Eof) and I wanted to know what does it mean? In which case, I can get this kind of error?

Thanks.

chifflier commented 5 months ago

Hi, This means that a parser has encountered Eof (End of File). The most probable cause is a truncated or invalid certificate.

cpu commented 5 months ago

Can you share the certificate you're trying to parse?

xdm67x commented 5 months ago

Thanks for your help, I can't give you for now the certificate (it's a downloaded certificate from a LDAP) but I think we can close this issue. Thanks a lot.