Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 1.11 KB

File metadata and controls

24 lines (17 loc) · 1.11 KB

micro509 in the browser

One HTML file. Open it.

Open in StackBlitz or view the HTML as it's intended: https://esm.sh/gh/kjanat/micro509/examples/browser/index.html

No package.json, no npm, no bundler.
index.html imports micro509 from a CDN and issues a self-signed certificate, then parses it back out of its own PEM:

<script type="module">
  import { createSelfSignedCertificate } from 'https://esm.run/micro509@0.11.0';
</script>

That works because the library is ESM and WebCrypto, and nothing else.

For the same demo with types, hot reload and micro509 as an npm dependency, see examples/vite.