Registry / crypto / x509-parser

x509-parser

JSON →
library0.18.1rscratesunverified

Parser for the X.509 v3 format (RFC 5280 certificates)

# Cargo.toml [dependencies] x509-parser = "0.18.1"
INSTALL
IMPORT
SIG · X509-PARSER
X
x509-parser
cryptorustv0.18.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

parse_x509_certificate
use x509_parser::parse_x509_certificate;

Parse an X.509 certificate from DER bytes

use x509_parser::parse_x509_certificate; use x509_parser::prelude::*; let der = include_bytes!("cert.der"); let (rem, cert) = parse_x509_certificate(der).unwrap(); println!("Subject: {}", cert.subject());
Debug
Known issues
gotchaRequires the `verify` feature for signature verification
fix
Add `features = ["verify"]` to Cargo.toml dependency
affects: >=0.18.0
Upgrade
Version history
0.18.1latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
30 hits · last 30 days
node
28
Amazon
1
Resources
x509-parser — cargo add x509-parser · libregistry