@peculiar/asn1-x509
ASN.1 schema for X.509 certificates, certificate revocation lists, and related profile structures defined in RFC 5280.
Last updated 8 days ago by GitHub Actions .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install @peculiar/asn1-x509 
SYNC missed versions from official npm registry.

@peculiar/asn1-x509

NPM License GitHub Actions Workflow Status npm version Coveralls npm downloads

ASN.1 schema for X.509 certificates, certificate revocation lists, and related profile structures defined in RFC 5280.

Use the exported classes with @peculiar/asn1-schema helpers such as AsnConvert, AsnParser, and AsnSerializer to parse or serialize DER-encoded data defined by the referenced specification.

Installation

npm install @peculiar/asn1-x509

Breaking Changes In v3

v3 is ESM-only and requires Node.js ^20.19.0 || >=22.12.0 (was >=14). CommonJS code can still require("@peculiar/asn1-x509") on these versions; Node.js 22.0–22.11 can't. The public API is unchanged. See the full notes.

  • TypeScript compiling to CommonJS: use "module": "node20" or "nodenext" (node16 fails with TS1479). ESM and bundler setups need no changes.
  • Jest in CommonJS mode: switch to ESM mode or Vitest, or configure an ESM-to-CommonJS transformer and make sure transformIgnorePatterns doesn't exclude the @peculiar/* packages and asn1js.
  • Deep imports (@peculiar/asn1-x509/build/...) are blocked by exports; import from @peculiar/asn1-x509.
  • Peer dependencies: @peculiar/asn1-schema (^3.0.0) and asn1js (^4.0.0) are peers instead of dependencies, so your app shares one copy with the other @peculiar/asn1-* packages. npm installs peers automatically.

Specifications

Current Tags

  • 3.1.0                                ...           latest (8 days ago)

62 Versions

  • 3.1.0                                ...           8 days ago
  • 3.0.0                                ...           a month ago
  • 2.11.1                                ...           a month ago
  • 2.11.0                                ...           a month ago
  • 2.10.0                                ...           2 months ago
  • 2.9.5                                ...           2 months ago
  • 2.9.4                                ...           3 months ago
  • 2.9.3                                ...           3 months ago
  • 2.9.2                                ...           3 months ago
  • 2.9.0                                ...           3 months ago
  • 2.8.0                                ...           6 months ago
  • 2.7.0                                ...           7 months ago
  • 2.6.1                                ...           9 months ago
  • 2.6.0                                ...           a year ago
  • 2.5.0                                ...           a year ago
  • 2.4.0                                ...           a year ago
  • 2.3.15                                ...           2 years ago
  • 2.3.13                                ...           2 years ago
  • 2.3.8                                ...           3 years ago
  • 2.3.6                                ...           4 years ago
  • 2.3.5                                ...           4 years ago
  • 2.3.4                                ...           4 years ago
  • 2.3.3                                ...           4 years ago
  • 2.3.2                                ...           4 years ago
  • 2.3.0                                ...           4 years ago
  • 2.2.0                                ...           4 years ago
  • 2.1.9                                ...           4 years ago
  • 2.1.8                                ...           5 years ago
  • 2.1.7                                ...           5 years ago
  • 2.1.6                                ...           5 years ago
  • 2.1.5                                ...           5 years ago
  • 2.1.4                                ...           5 years ago
  • 2.1.3                                ...           5 years ago
  • 2.1.0                                ...           5 years ago
  • 2.0.44                                ...           5 years ago
  • 2.0.38                                ...           5 years ago
  • 2.0.37                                ...           5 years ago
  • 2.0.36                                ...           5 years ago
  • 2.0.32                                ...           6 years ago
  • 2.0.29                                ...           6 years ago
  • 2.0.27                                ...           6 years ago
  • 2.0.26                                ...           6 years ago
  • 2.0.25                                ...           6 years ago
  • 2.0.23                                ...           6 years ago
  • 2.0.22                                ...           6 years ago
  • 2.0.21                                ...           6 years ago
  • 2.0.20                                ...           6 years ago
  • 2.0.17                                ...           6 years ago
  • 2.0.14                                ...           6 years ago
  • 2.0.13                                ...           6 years ago
  • 2.0.12                                ...           6 years ago
  • 2.0.11                                ...           6 years ago
  • 2.0.10                                ...           6 years ago
  • 2.0.9                                ...           6 years ago
  • 2.0.8                                ...           6 years ago
  • 2.0.7                                ...           6 years ago
  • 2.0.7-alpha.1                                ...           6 years ago
  • 2.0.5                                ...           6 years ago
  • 2.0.4                                ...           6 years ago
  • 2.0.3                                ...           7 years ago
  • 2.0.2                                ...           7 years ago
  • 2.0.1                                ...           7 years ago

© 2010 - cnpmjs.org x YWFE | Home | YWFE