deno icon indicating copy to clipboard operation
deno copied to clipboard

why tls rejectUnauthorized is always true in Deno?

Open masx200 opened this issue 2 years ago • 7 comments

why tls rejectUnauthorized is always true in Deno?

masx200 avatar Jun 27 '22 02:06 masx200

https://deno.land/[email protected]/node/_tls_wrap.ts?codeview=#L280

masx200 avatar Jun 27 '22 02:06 masx200

https://doc.deno.land/deno/stable/~/Deno.connectTls

masx200 avatar Jun 27 '22 02:06 masx200

https://doc.deno.land/deno/unstable/~/Deno.connectTls

masx200 avatar Jun 27 '22 02:06 masx200

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.

masx200 avatar Jun 27 '22 02:06 masx200

Because there is no point to using TLS without verification. You can just use plain text then and save yourself some CPU cycles.

lucacasonato avatar Jun 27 '22 09:06 lucacasonato

Local testing https is also one of the common application scenarios.

masx200 avatar Jun 27 '22 09:06 masx200

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.

stale[bot] avatar Sep 08 '22 21:09 stale[bot]