X.509 Parser
A X.509 (RFC5280) parser, implemented with the nom parser combinator framework.
The code is available on Github and is part of the Rusticata project.
The main parsing method is parse_x509_der
, which takes a DER-encoded
certificate as input, and builds a X509Certificate
object.
For PEM-encoded certificates, use the pem
module.
Examples
Parsing a certificate in DER format:
# extern crate nom;
# extern crate x509_parser;
use parse_x509_der;
static IGCA_DER: &'static = include_bytes!;
#