A part of TinyPKI project, with the intention to facilitate higher adoption of mTLS.
- 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 (
.P12or.PFXfile);
See the library demo for further reference.
This library is distributed in two formats.
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-csrSuitable for usage on classic HTML5 web pages, without requiring any external dependencies. The entire bundle is approximately 500 kB.
Download: tinypki-csr.js
See demo/ directory for usage examples.
After cloning the repository, run the following commands:
yarn
yarn build