Skip to content

Getting Started

dweller long gone edited this page May 21, 2026 · 1 revision

Getting Started

PkiStudioJS can be used as a hosted browser tool, a local static web application, an embeddable viewer, or a reusable CommonJS Core API.

Hosted Viewer

Open the hosted viewer:

https://pkistudio.github.io/pkistudiojs/

All parsing happens in the browser. File contents are not uploaded to the server.

Install from npm

npm install @pkistudio/pkistudiojs

The package exports:

  • @pkistudio/pkistudiojs: Core API.
  • @pkistudio/pkistudiojs/core: Core API alias.
  • @pkistudio/pkistudiojs/viewer: browser viewer API.
  • @pkistudio/pkistudiojs/oid-resolver: bundled OID resolver API.

Run Locally from the Repository

npm test
npm run check
node app/server.js

Then open:

http://localhost:8080/

Load Data in the Viewer

Use the Load menu or drop a file onto the viewer.

Supported load paths include:

  • Load -> from File: opens DER, PEM, certificate, CSR, CRL, PKCS#7, and binary files.
  • Load -> from Clipboard as PEM: reads PEM or headerless base64 text.
  • Load -> from Clipboard as HEX: reads compact hexadecimal DER text.

Supported file extensions include .der, .pem, .cer, .crt, .csr, .p7b, .p7c, .crl, and .bin.

Supported ASN.1 Input

PkiStudioJS supports:

  • ASN.1 DER binaries.
  • BER constructed values with indefinite length.
  • PEM files.
  • Headerless base64-encoded ASN.1 data.
  • HEX text containing DER bytes.

PEM and headerless base64 input are decoded locally in the browser before parsing.

Save Data

Use Save -> to File as DER to save the current document as DER. Browsers with file-save support show a save dialog; other browsers download the DER file with the filename you enter.

Clone this wiki locally