I need use X509Certificate from node module, but my project is Bun runtime.
import { X509Certificate, createDecipheriv, createSign } from 'crypto';
when I start the project, it gives me the error:
> bun run --hot src/app.ts
1 | (function (entry, fetcher)
^
SyntaxError: Export named 'X509Certificate' not found in module 'crypto'.
I've searched its official doc : https://bun.sh/docs/runtime/nodejs-apis#node-crypto, they said X509Certificate is not optimized yet.