Certificates and requests
X.509, CMS, and other PKI formats for JavaScript
Create, parse, sign, and verify certificates, CRLs, OCSP messages, CMS messages, timestamps, and PKCS#12 files in browsers and Node.js. PKIjs is written in TypeScript, relies on the Web Crypto API for all cryptography, and is built on asn1js.
Features
Section titled “Features”Chain validation and revocation
Signing with CMS
Sign and verify data with Cryptographic Message Syntax (RFC 5652), with attached or detached content and signed attributes. CMS is the basis of S/MIME, signed PDFs, and code signing.
Encryption with CMS
Encrypt and decrypt CMS enveloped data for certificate holders (RSA-OAEP or ECDH), with a shared key, or with a password, using AES-CBC or AES-GCM.
Timestamping
Create and verify Time-Stamp Protocol (RFC 3161) requests and responses, which prove that data existed before a given time and keep signatures verifiable long after certificates expire.
PKCS#12 and private keys