mirror of
https://github.com/FiloSottile/mkcert.git
synced 2026-04-25 05:26:03 +03:00
[GH-ISSUE #365] wasm binary? #238
Labels
No labels
TLS stack issue
Windows
bug
duplicate
duplicate
enhancement
help wanted
help wanted
pull-request
question
question
root store
waiting for info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mkcert#238
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @andykais on GitHub (May 24, 2021).
Original GitHub issue: https://github.com/FiloSottile/mkcert/issues/365
Is there any chance of compiling this code to a wasm binary that can be imported into nodejs and deno projects? I want to use
mkcertto generate localhost certificates for a local web app package, but it will require end users to installmkcertthemselves, and run commands. Ifmkcertwere usable as a wasm binary (literally just expose the command line interface as a function in js) then local web apps could ship with mkcert as a dependency and install the root CA and generate the localhost certs themselves as part of the initialization process.An example of what initializing mkcert as a wasm module might look like:
@aral commented on GitHub (Dec 20, 2022):
I wonder if this would be possible to get working with the current state of WASI. Compiling to WASM, as I understand, is the easy part. Getting it to launch external processes (certutil) less so.
Update: until this is implemented, I don’t think there’s a way to make this work: https://github.com/WebAssembly/WASI/issues/414
@andykais commented on GitHub (Jan 3, 2023):
thanks for looking into this, it does look like we have to wait on upstream changes before this is possible
@augustobmoura commented on GitHub (Jun 14, 2023):
When trying to compile to WASM I'm getting the following errors:
Command run:
Anyone knows what would be the problem? I'm not familiar with these type of Go compilation errors, the variables seems to be defined, but it throws undefined errors nonetheless, maybe a
GOARCH=wasmlimitation?