-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error "invalid peer certificate: UnknownIssuer" on Deno but not on Node #20362
Comments
I was able to solve this error by setting However, is the error intentional? Or do we expect the code above to pass, like on Node? |
I encountered the same error message when I tried to use a client certificate. const { Agent } = require('undici');
fetch(url, {
dispatcher: new Agent({
connect: {
cert: cert,
key: key,
ca: ca
}
})
}); |
Encountered the same issue. I'm using |
I have the same issue, and this is due to my company proxy, that is using zscaler which is replacing SSL certificates on the fly (you know.. firewalling, packet inspection, etc). Do we have an option to tell deno to trust the corporate certificate ? Updated : ok i resolved it by downloading the install script, and adding DENO_CERT at the top to the chain PEM i extracted from the expected URL. Then i restarted the install script. And added DENO_CERT in my .zshrc file. |
The issue is node and deno have different config options for specifying ca certificate. DENO_CERT also works but it is not always possible to change it, nor it is possible to specify multiple certificates on the fly with it (like customer specific certificates). For nodejs tls.connect, It seems, |
I get this error when connecting to a Supabase Postgres database using Postgres.js on Deno
1.36.3+c9223bc
:However, the code above works fine on Node.js
v18.17.1
The text was updated successfully, but these errors were encountered: