-
Notifications
You must be signed in to change notification settings - Fork 0
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.
Open the hosted viewer:
https://pkistudio.github.io/pkistudiojs/
All parsing happens in the browser. File contents are not uploaded to the server.
npm install @pkistudio/pkistudiojsThe 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.
npm test
npm run check
node app/server.jsThen open:
http://localhost:8080/
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.
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.
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.