{"_id":"@dottedice/web-crypto-pki","_rev":"8-1081faee7ebef15129038149de62f812","name":"@dottedice/web-crypto-pki","dist-tags":{"latest":"1.0.7"},"versions":{"1.0.0":{"name":"@dottedice/web-crypto-pki","version":"1.0.0","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"MIT","_id":"@dottedice/web-crypto-pki@1.0.0","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"dist":{"shasum":"ffebcf6b8ad3048aa03b57f64be8cacea983aae9","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.0.tgz","fileCount":3,"integrity":"sha512-gXlITf4iKkcuCsCBhsXvjiy96GV+6F3eL6ZsiokERMl9lWEfuOvcsCngq42/5XAk8hsPTfAsxWWpn2dxHie9RQ==","signatures":[{"sig":"MEQCIHowj3LWocKkaES9FNvK6lIBPfG6Uw1ket0OBdqSKgghAiAQCJunvjdVsVrkdQrd3uZzpD+HsCH0HaB1pFT/2WeWzw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5762},"main":"index.js","type":"module","gitHead":"f0645a24fdb073d0012f9c6f6e75f7ecc733ebc5","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"10.8.2","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.0_1785985853441_0.8907152424334823","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@dottedice/web-crypto-pki","version":"1.0.1","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","_id":"@dottedice/web-crypto-pki@1.0.1","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"dist":{"shasum":"ff6e5ba4c76906f583b50ec6afa02ad5e6496caa","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.1.tgz","fileCount":3,"integrity":"sha512-HKSE9jKaveEXBdajje7RxVVgCmsIXeZ7rgLWbWp335U2R13JfSE53YlttFRDOe2K76xBWU/v7zzpEtD+eJXznA==","signatures":[{"sig":"MEQCICi2aUI3ZVrIKvzIYqF0HOknqXS6FnS7YqgVaau4UttJAiBmjJeABWnw1Y8hwObJfh4K42TCTq5oQieiAqXVYK4XoQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":5769},"main":"index.js","type":"module","gitHead":"391ffd49f29fd6ba30308a539fa4e53b626ee59b","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"10.8.2","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.1_1785987202628_0.9000666151781405","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@dottedice/web-crypto-pki","version":"1.0.2","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","_id":"@dottedice/web-crypto-pki@1.0.2","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"dist":{"shasum":"6ff38e54c9567a3c2ba0847ef7c972e7abb5e0af","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.2.tgz","fileCount":3,"integrity":"sha512-UPETotWJ141Mort1VJ33iGMPq1TpdMWcYMvueg7Dnnx7+6gYKa47pMR/J5Iuj8UgAfw/9+XlqduNj4WbuTkVUw==","signatures":[{"sig":"MEUCICiSJu2NNHf7myLOC4AS0Y46l4iveLQXmeouKt/Z9CdXAiEAllmZofktaZAIS1IUWTZxZiTlonYJtMCqKIQCLkr//Ls=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6324},"main":"index.js","type":"module","gitHead":"8a31be8e8e3e6a917975899f2de34edbece7aff5","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"10.8.2","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"20.20.2","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.2_1785997665943_0.4263059119817387","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@dottedice/web-crypto-pki","version":"1.0.3","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","_id":"@dottedice/web-crypto-pki@1.0.3","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"dist":{"shasum":"ef1e57b4acf555f2df64e62764f315c0c7b37aa8","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.3.tgz","fileCount":3,"integrity":"sha512-VRfZKDgDAwhhjzjYfSNvsbYkSDbC0XPV4YTTyCYBA3eisAhQGmWYK2rv2p8BgcTbV67CWn0CoZ+iTLJCpHEJQQ==","signatures":[{"sig":"MEUCIQC0VQN3IS9hfKBavxJEo0InegBY+JYtRW2H32tiQIEDTgIgMdBiAnT1nP7z+6sis5MYDiY92iMLeDx5iEjshmf2Dwc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11436},"main":"index.js","type":"module","gitHead":"39c658f30e9a13eaa0278eb6b3585ce701eafee6","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"10.8.2","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"20.20.2","dependencies":{"@dottedice/x509-asn1-builder":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.3_1786198741217_0.8819449316522163","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@dottedice/web-crypto-pki","version":"1.0.4","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","_id":"@dottedice/web-crypto-pki@1.0.4","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"homepage":"https://dottedice.com/open-source-terms.html","dist":{"shasum":"ac329530930d6e4b14b034ffafaaad1fa325dc60","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.4.tgz","fileCount":3,"integrity":"sha512-nFCydfCI/uK+2geYEMmGrc5kqJealtdEEiYe5xIDCfPGviE3y+gf74Dwald806hv/DwuvqDSMRiih4iOjbWWqQ==","signatures":[{"sig":"MEYCIQCncHDTFuYbo6FDHCx4qY5CZ5MK9Zbf7teMTjlRjNbImgIhAKwqaVyoFPlq6sQ5rrrp/eNa+Zg4wdjpKKbW8Jo5G+94","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11498},"main":"index.js","type":"module","gitHead":"fae6f79e3d239b8aa39fb3012a022ddd2208a42d","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"11.5.1","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"24.6.0","dependencies":{"@dottedice/x509-asn1-builder":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.4_1786885868977_0.36206255343169236","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@dottedice/web-crypto-pki","version":"1.0.5","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","_id":"@dottedice/web-crypto-pki@1.0.5","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"homepage":"https://dottedice.com/open-source-terms.html","dist":{"shasum":"c2f5d170534514eb0eb7552dffd97dddda75fc08","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.5.tgz","fileCount":3,"integrity":"sha512-A7dVcKF23oH3T4RFTKcY6/J70Uf463SzaRKJORaOBl5joH+etEiJm5FdieS8cSJYIM5FxzF74PU766cgoRLeSg==","signatures":[{"sig":"MEUCIEpxCmNFSe1iU/YqCJbC9QFh4dEgitbP/Xh924draZLvAiEA4U+RwwiboQTdslXEkHR+STgcWznVm8Jyi1tdAnokCGQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":11498},"main":"index.js","type":"module","gitHead":"46be19e7fa82587f9fc85010aa7c72e6e148a0f3","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"11.5.1","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"24.6.0","dependencies":{"@dottedice/x509-asn1-builder":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.5_1786971093493_0.5519417336470929","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@dottedice/web-crypto-pki","version":"1.0.6","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","_id":"@dottedice/web-crypto-pki@1.0.6","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"homepage":"https://dottedice.com/legal.html#tab=opensource","dist":{"shasum":"7951c74ec2a5282264e6704c803e6a2b2288a826","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.6.tgz","fileCount":3,"integrity":"sha512-EltC4wosuWysBqVsedWkunzIkrpguWgVI9hsoaE/B9LX+KjWcEV4R25vs9nOfg+0NyjD9KCfXXhI+SlG2CGOyg==","signatures":[{"sig":"MEUCIF3I2PON/U0Hoo5TLYlOf7Xbz71GlZhZzNVF/N/bV+ERAiEA9nYDOBNE3cHfztv6WEmg/hOXQrqYH3XWePvNwugaQ9A=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":6895},"main":"index.js","type":"module","gitHead":"ce102bc6358dfcce38e3625b8efc56246f033747","scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"_npmVersion":"11.5.1","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","directories":{},"_nodeVersion":"24.6.0","dependencies":{"@dottedice/x509-asn1-builder":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/web-crypto-pki_1.0.6_1786973268786_0.12262599248113215","host":"s3://npm-registry-packages-npm-production"}},"1.0.7":{"name":"@dottedice/web-crypto-pki","version":"1.0.7","description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","main":"index.js","type":"module","dependencies":{"@dottedice/x509-asn1-builder":"^1.0.0"},"scripts":{"test":"echo \"Error: no test specified\" && exit 0"},"keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","homepage":"https://dottedice.com/legal.html#tab=opensource","publishConfig":{"access":"public"},"_id":"@dottedice/web-crypto-pki@1.0.7","gitHead":"3d162b3ab290497b392b95c2df1b86ed3f9bec84","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-CLC56aDeQG3guFE0W0RwEiLTLPhHxWOOu1ycMBGsgDJ6O63ViQbt5uaR8iNK55W1TuehdT9xIt9dwTuV+Rjf2A==","shasum":"25f7f60982be7eb1f4ae7e7d16191d9fbee951af","tarball":"https://registry.npmjs.org/@dottedice/web-crypto-pki/-/web-crypto-pki-1.0.7.tgz","fileCount":3,"unpackedSize":7371,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBdM4+wK5Ud18rDk7A+kWzrniZloVsQ7bJzhDAQe9m56AiEAjSIrVLT5EgVOJ7SR/UU5BRG21cvfJNIEs1rp/HNU+j8="}]},"_npmUser":{"name":"dottedice","email":"info@dottedice.com"},"directories":{},"maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/web-crypto-pki_1.0.7_1787674437957_0.11407428035633305"},"_hasShrinkwrap":false}},"time":{"created":"2026-08-06T03:10:53.117Z","modified":"2026-08-25T16:13:58.246Z","1.0.0":"2026-08-06T03:10:53.574Z","1.0.1":"2026-08-06T03:33:22.787Z","1.0.2":"2026-08-06T06:27:46.093Z","1.0.3":"2026-08-08T14:19:01.375Z","1.0.4":"2026-08-16T13:11:09.174Z","1.0.5":"2026-08-17T12:51:33.652Z","1.0.6":"2026-08-17T13:27:48.937Z","1.0.7":"2026-08-25T16:13:58.096Z"},"author":{"name":"DottedIce Digital"},"license":"Apache-2.0","homepage":"https://dottedice.com/legal.html#tab=opensource","keywords":["cryptography","webcrypto","pki","x509","offline-first","keypair","certificates"],"description":"Offline-first keypair and X.509 certificate generator using Web Crypto API","maintainers":[{"name":"dottedice","email":"info@dottedice.com"}],"readme":"## Legal Terms & Disclaimer\nThis open-source package is distributed strictly for technical education and architectural research purposes. For full warranty disclaimers, export control notices (US EAR / EU Dual-Use), and limitation of liability terms, please review our [Open Source Terms & Disclaimer](https://dottedice.com/legal.html#tab=opensource).\n\n---\n\n# @dottedice/web-crypto-pki\n\nOffline-first asymmetric key pair and simulated certificate generator utilizing the native Web Cryptography API. Works seamlessly in both modern web browsers and Node.js environments.\n\n## Installation\n\n```bash\nnpm install @dottedice/web-crypto-pki\n```\n\n## Features\n* **Zero Dependencies**: Uses standard native Web Cryptography APIs under the hood.\n* **Algorithm Support**: Supports standard RSA (`RSASSA-PKCS1-v1_5`) and ECDSA (`P-256`) algorithms.\n* **PEM Exports**: Convenient utilities to format cryptographic keys as PEM (`SPKI` / `PKCS#8`) strings.\n* **Simulated Self-Signed Certificates**: Locally generates JSON-structured self-signed certificate payloads for development sandboxes and testing (non-ASN.1 DER format).\n\n## Usage Example\n\n```javascript\nimport { generateKeyPair, exportPEM, generateX509Certificate } from '@dottedice/web-crypto-pki';\n\n// 1. Generate an RSA Keypair\nconst keyPair = await generateKeyPair('RSA');\n\n// 2. Export Private Key to PEM\nconst privatePem = await exportPEM(keyPair.privateKey, 'private');\nconsole.log(privatePem);\n\n// 3. Generate a local simulated self-signed certificate payload\nconst cert = await generateX509Certificate(\n  { commonName: 'Vikram Sharma', organization: 'DottedIce Tech' },\n  keyPair\n);\nconsole.log('Certificate Signature:', cert.signature);\n```\n\n> [!NOTE]\n> `generateX509Certificate` generates a simulated JSON-structured representation of certificate metadata signed with Web Crypto. For standard ASN.1 DER certificates compliant with RFC 5280, use our upcoming `@dottedice/x509-asn1-builder` package.\n\n## Publishing to Registry\n\nTo publish this package to the npm registry, execute:\n```bash\nnpm login\n```\n","readmeFilename":"README.md"}