@peculiar/x509 - TypeScript/Javascript library for generating X.509 Certificates, Certificate Requests and validating certificate chains.
@peculiar/x509 is a comprehensive TypeScript/JavaScript library designed to simplify the handling of X.509 Certificates and Certificate Requests. It provides a user-friendly interface for tasks such as generating certificates, validating certificate chains, parsing certificate information, and creating certificate signing requests. The library is built on top of @peculiar/asn1-schema, offering a robust and efficient foundation for cryptographic operations involving X.509 certificates.
Features
Parsing X.509 certificates
Extract information from certificates, including subject, issuer, public key, validity period and other.
Generating X.509 certificates
Easily create self-signed certificates or certificates signed by a CA.
Creating PKCS#10 certificate requests
Generate certificate signing requests (CSRs) for obtaining certificates from a CA.
Validating certificate chains
Ensure the authenticity and trustworthiness of certificate chains.