mozilla / crlite

WebPKI-level Certificate Revocation via Multi-Level Bloom Filter Cascade
http://www.cs.umd.edu/~dml/papers/crlite_oakland17.pdf
Mozilla Public License 2.0
67 stars 8 forks source link

rust-query-crlite: handle negative serial numbers #264

Closed jschanck closed 1 year ago

jschanck commented 2 years ago

I overlooked the raw_serial() method on x509_parser::TbsCertificate. Under the hood it calls der_parser::parse_ber_integer https://docs.rs/der-parser/latest/src/der_parser/ber/parser.rs.html#280-295, which is exactly what we want.