Commit 4875066
committed
Fix BoringSSL compatibility for Bun runtime
Bun uses BoringSSL which requires an explicit digest algorithm for EC key
signing, but the ephemeral signer was using crypto.sign(null, ...) which
only works with Node's OpenSSL implementation.
Changes:
- Updated ephemeral signer to use 'sha256' explicitly instead of null
- Changed from default crypto import to named imports for better compatibility
- Both Node.js (OpenSSL) and Bun (BoringSSL) now work correctly
This enables Bun users to use @sigstore/sign without any patches or workarounds.
Signed-off-by: keithagroves <[email protected]>1 parent eba6a52 commit 4875066
File tree
2 files changed
+8
-3
lines changed- .changeset
- packages/sign/src/signer/fulcio
2 files changed
+8
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| |||
0 commit comments