Skip to content

icedevml/tinypki-csr

Repository files navigation

TinyPKI CSR/PKCS12 Generator Library

A part of TinyPKI project, with the intention to facilitate higher adoption of mTLS.

Features

  • Client-side PKCS#10 Certificate Signing Request (CSR) generation using Web Crypto API key pairs (supported: RSA/ECDSA/Ed25519);
  • Bundling PEM certificate chain and private key together into PKCS#12 container (.P12 or .PFX file);

Demo

See the library demo for further reference.

Installation

This library is distributed in two formats.

ESM library

Suitable for SPA frameworks (like React.js), available on NPM Registry as @icedevml/tinypki-csr.

npm install --save @icedevml/tinypki-csr
yarn add @icedevml/tinypki-csr

Single-file JavaScript bundle

Suitable for usage on classic HTML5 web pages, without requiring any external dependencies. The entire bundle is approximately 500 kB.

Download: tinypki-csr.js

Usage

See demo/ directory for usage examples.

Manual building

After cloning the repository, run the following commands:

yarn
yarn build

About

Client-side Certificate Signing Request (CSR; PKCS#10) and PKCS#12 file generation from JavaScript

Topics

Resources

License

Stars

Watchers

Forks

Contributors