From 1dc1ae5ab53d545a821c5a46f7364b20c35bf5a0 Mon Sep 17 00:00:00 2001 From: Asher Gomez Date: Wed, 13 Mar 2024 13:12:46 +1100 Subject: [PATCH] refactor(http): use `cert` and `key` for `Deno.listenTls()` (#4479) * refactor(http): use `cert` and `key` for `Deno.listenTls()` * fix --- http/server.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/http/server.ts b/http/server.ts index 98d951543c3c..f03dac51a003 100644 --- a/http/server.ts +++ b/http/server.ts @@ -246,8 +246,8 @@ export class Server { const listener = Deno.listenTls({ port: this.#port ?? HTTPS_PORT, hostname: this.#host ?? "0.0.0.0", - certFile, - keyFile, + cert: Deno.readTextFileSync(certFile), + key: Deno.readTextFileSync(keyFile), transport: "tcp", // ALPN protocol support not yet stable. // alpnProtocols: ["h2", "http/1.1"],