deno
deno copied to clipboard
why tls rejectUnauthorized is always true in Deno?
why tls rejectUnauthorized is always true in Deno?
https://deno.land/[email protected]/node/_tls_wrap.ts?codeview=#L280
https://doc.deno.land/deno/stable/~/Deno.connectTls
https://doc.deno.land/deno/unstable/~/Deno.connectTls
Since the unencrypted http/2 protocol is not supported, if you want to use http/2 in the local area network, you can only use the self-signed certificate to open the http/2 service. This requires the client not to check certificate validity.
Because there is no point to using TLS without verification. You can just use plain text then and save yourself some CPU cycles.
Local testing https is also one of the common application scenarios.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.