themountaindude
themountaindude
DDeno
Created by themountaindude on 10/25/2024 in #help
Get https server's cert common/alt names using Deno?
Pretty new to Deno but have been using Node for some years. == Question 1: I am trying to create a little Deno 2 tool that connects to a server on a specific host/port, then pulls down the server's TLS cert info and shows it to the user. The cmoon and alt names are of particular interest. I can get these by running openssl from command line (and via Node.js actually), but I eventually want to integrate this into a larger Deno app. Seems the TlsConn interface lacks any connection/cert info.. Would this be possible using today's Deno? Or are these low-level network features still on the todo list? == Question 2: When connecting to TLS protected servers it's of course important to connect using the correct hostnames, otherwise a warning will appear. Now, we can disable this protection by specifying the option --unsafely-ignore-certificate-errors at startup. Not pretty or good, but works. And useful sometimes in testing scenarios. But is it possible to specify the same thing at run/connection time (i.e. not during startup)? Seems not... but is that really the case?
1 replies