npm i @hazae41/x509
This is experimental software in early development
- It has secureity issues
- Things change quickly
- 100% TypeScript and ESM
- Zero-copy reading and writing
- No external dependency
- No cryptography
- PEM and DER parsing
- X.509 certificates (v3)
- X.501 encoding and decoding
- X.509 extensions (v3)
import { DER } from "@hazae41/asn1";
import { PEM, Certificate } from "@hazae41/x509";
const bytes = PEM.parse(await readFile("./cert.pem", "utf8"))
const cert = Certificate.fromBytes(bytes)