# @peculiar/asn1-x509

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

Latest version **2.9.4** (published 2026-08-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install @peculiar/asn1-x509
pnpm add @peculiar/asn1-x509
yarn add @peculiar/asn1-x509
bun add @peculiar/asn1-x509
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.9.4 |
| Published | 2026-08-20 |
| First published | 2020-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=14 |
| Dependencies | 4 |
| Unpacked size | 168.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 45 |
| Author | PeculiarVentures, LLC |
| Maintainers | rmhrisk, microshine, yury.strozhevsky, peculiarventures, apilguk, donskov, worldthirteen |
| Keywords | asn, asn1, x509, certificate, crl, rfc5280 |

## Links

- npm: https://www.npmjs.com/package/@peculiar/asn1-x509
- Repository: https://github.com/PeculiarVentures/asn1-schema
- Homepage: https://github.com/PeculiarVentures/asn1-schema/tree/master/packages/x509#readme
- Issues: https://github.com/PeculiarVentures/asn1-schema/issues
- npm.io page: https://npm.io/package/@peculiar/asn1-x509

## Dependencies (4)

- [tslib](https://npm.io/package/tslib.md) ^2.8.1
- [asn1js](https://npm.io/package/asn1js.md) ^3.0.10
- [@peculiar/utils](https://npm.io/package/@peculiar/utils.md) ^2.0.2
- [@peculiar/asn1-schema](https://npm.io/package/@peculiar/asn1-schema.md) ^2.9.4

## Recent versions

- 2.9.4 (latest) — 2026-08-20
- 2.9.3 — 2026-08-18
- 2.9.2 — 2026-08-18
- 2.9.0 — 2026-08-14
- 2.8.0 — 2026-06-11
- 2.7.0 — 2026-05-01
- 2.6.1 — 2026-02-12
- 2.6.0 — 2025-11-16
- 2.5.0 — 2025-09-08
- 2.4.0 — 2025-07-16
- 2.3.15 — 2024-12-23
- 2.3.13 — 2024-08-01
- 2.3.8 — 2023-10-17
- 2.3.6 — 2023-03-13
- 2.3.5 — 2023-03-13
- … 41 more at https://npm.io/package/@peculiar/asn1-x509/versions

## README

# `@peculiar/asn1-x509`

[![License](https://img.shields.io/badge/license-MIT-green.svg?style=flat)](https://github.com/PeculiarVentures/asn1-schema/blob/master/packages/x509/LICENSE)
[![npm version](https://badge.fury.io/js/%40peculiar%2Fasn1-x509.svg)](https://badge.fury.io/js/%40peculiar%2Fasn1-x509)

[![NPM](https://nodei.co/npm/@peculiar/asn1-x509.png)](https://nodei.co/npm/@peculiar/asn1-x509/)

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

```bash
npm install @peculiar/asn1-x509
```

## Specifications

- [RFC 5280: Internet X.509 Public Key Infrastructure Certificate and Certificate Revocation List (CRL) Profile](https://datatracker.ietf.org/doc/html/rfc5280)
- [EntrustVersionInfo extension reference](http://ftp.gnome.org/mirror/archive/ftp.sunet.se/pub/security/dfnpca/docs/misc/Entrust/directory.pdf)

---
_Source: https://npm.io/package/@peculiar/asn1-x509 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
