Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Zero-copy X.509 certificates for the web 🏎️

NotificationsYou must be signed in to change notification settings

hazae41/x509

Repository files navigation

npm i @hazae41/x509

Node Package 📦

Features

Current features

  • 100% TypeScript and ESM
  • Zero-copy reading and writing
  • No external dependency
  • No cryptography
  • Rust-like patterns
  • Zero-copy PEM <=> DER <=> ASN1 <=> X509 reading and writing
  • X.509 certificates (v3)
  • X.501 encoding and decoding
  • X.509 extensions (v3)

Usage

Reading DER

import{Certificate,X509}from"@hazae41/x509";constbytes=awaitreadFile("./cert.der")constcert=X509.tryReadFromBytes(bytes,Certificate).unwrap()

Reading PEM

import{PEM,Certificate,X509}from"@hazae41/x509";constbytes=PEM.tryParse(awaitreadFile("./cert.pem","utf8")).unwrap()constcert=X509.tryReadFromBytes(bytes,Certificate).unwrap()

[8]ページ先頭

©2009-2025 Movatter.jp