JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 206782
  • Score
    100M100P100Q183150F
  • License MIT

X509 certificate tools for Node.js, includes PEM, ASN1 with DER.

Package Exports

  • @fidm/x509

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@fidm/x509) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

x509

X509 certificate tools for Node.js, includes PEM, ASN1 with DER.

example

const fs = require('fs')
const { PEM, ASN1 } = require('@fidm/x509')

const crtData = fs.readFileSync('./test/cert/github.crt')
const blocks = PEM.parse(crtData)
const asn1 = ASN1.fromDER(blocks[0].body, true)
console.log(asn1)