#pki-x509 #x509 #pki

x509cert

anypki fork of X.509 certificate parser and utility functionality

3 releases

0.25.2 Feb 11, 2025
0.25.1 Dec 13, 2024
0.25.0 Nov 30, 2024

#1879 in Cryptography

Download history 382/week @ 2024-12-11 190/week @ 2024-12-18 35/week @ 2024-12-25 49/week @ 2025-01-01 20/week @ 2025-01-08 31/week @ 2025-01-15 75/week @ 2025-01-22 46/week @ 2025-01-29 185/week @ 2025-02-05 126/week @ 2025-02-12 131/week @ 2025-02-19 61/week @ 2025-02-26 139/week @ 2025-03-05 42/week @ 2025-03-12 7/week @ 2025-03-19 82/week @ 2025-03-26

275 downloads per month
Used in 3 crates (2 directly)

MPL-2.0 license

220KB
4.5K SLoC

x509-certificate

x509-certificate is a library crate for interfacing with X.509 certificates. It supports the following:

  • Parsing certificates from BER, DER, and PEM.
  • Serializing certificates to BER, DER, and PEM.
  • Defining common algorithm identifiers.
  • Generating new certificates.
  • Verifying signatures on certificates.
  • And more.

This crate has not undergone a security audit. It does not employ many protections for malformed data when parsing certificates. Use at your own risk. See additional notes in src/lib.rs.

Developing

The root of the repository is a Cargo workspace and has a lot of members. The dependency tree for the entire repo is massive and cargo build likely will fail due to Python dependency weirdness.

For best results, cd x509-certificate and run commands there. Or cargo build -p x509-certificate, cargo test -p x509-certificate, etc.

Dependencies

~3–14MB
~195K SLoC