You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use nodefetch('url', { agent: [any ssl agent] })
bun will try to use internal fetch instead of node-fetch, so certificate pinning is not possible
or
fetch('url', { dispatch: })
dispatch is not available
What is the expected behavior?
Please add certificate pinning
What do you see instead?
ERR_TLS_CERT_ALTNAME_INVALID: ERR_TLS_CERT_ALTNAME_INVALID fetching [...] For more information, pass verbose: true in the second argument to fetch()
Additional information
Also haven't found a reliable way to disable tls certificate checking for selected fetch calls, not for entire application. This could've been done with https.Agent rejectUnauthorized: false but bun does not have this
The text was updated successfully, but these errors were encountered:
use the agent property instead. The following code works just fine in node but fails in bun 1.1.6 with SELF_SIGNED_CERT_IN_CHAIN: self signed certificate in certificate chain.
// Using node-fetchreturnfetch(url,Object.assign(init||{},{agent: function(_parsedURL){returnnewhttps.Agent({cert: certInfo.cert,ca: certInfo.ca,key: certInfo.key});}}));
What version of Bun is running?
1.1.4+fbe2fe0c3
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
bun install node-fetch
bun will try to use internal fetch instead of node-fetch, so certificate pinning is not possible
or
fetch('url', { dispatch: })
dispatch is not available
What is the expected behavior?
Please add certificate pinning
What do you see instead?
ERR_TLS_CERT_ALTNAME_INVALID: ERR_TLS_CERT_ALTNAME_INVALID fetching [...] For more information, pass
verbose: true
in the second argument to fetch()Additional information
Also haven't found a reliable way to disable tls certificate checking for selected fetch calls, not for entire application. This could've been done with https.Agent rejectUnauthorized: false but bun does not have this
The text was updated successfully, but these errors were encountered: