@samitouri / QOSami-HFS / commits / 96768e52

print all domains of certificate on start

Massimo Melina committed Apr 1, 2024 at 17:42 UTC 96768e52a7a3295d13cd2e8fb0ace391f7502487
1 file changed +1 -1
src/listen.ts
+1 -1
@@ -97,7 +97,7 @@ const considerHttps = debounceAsync(async () => {
97 if (cert) {
98 const cn = cert.subject?.CN
99 if (cn)
100 - console.log("certificate loaded for", cn)
100 + console.log("certificate loaded for", cert.altNames?.join(' + ') || cn)
101 const now = new Date()
102 const from = new Date(cert.validFrom)
103 const to = new Date(cert.validTo)