From 3e8180c793f1dd7437a497ffdb0cf7e919a9a5c3 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Thu, 24 Feb 2022 13:16:56 +0900 Subject: feat(ext/net): support cert, key options in listenTls (#13740) --- ext/net/lib.deno_net.d.ts | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'ext/net/lib.deno_net.d.ts') diff --git a/ext/net/lib.deno_net.d.ts b/ext/net/lib.deno_net.d.ts index 048037d02..038452055 100644 --- a/ext/net/lib.deno_net.d.ts +++ b/ext/net/lib.deno_net.d.ts @@ -93,11 +93,21 @@ declare namespace Deno { ): Listener; export interface ListenTlsOptions extends ListenOptions { + /** Server private key in PEM format */ + key?: string; + /** Cert chain in PEM format */ + cert?: string; /** Path to a file containing a PEM formatted CA certificate. Requires - * `--allow-read`. */ - certFile: string; - /** Server public key file. Requires `--allow-read`.*/ - keyFile: string; + * `--allow-read`. + * + * @deprecated This option is deprecated and will be removed in Deno 2.0. + */ + certFile?: string; + /** Server private key file. Requires `--allow-read`. + * + * @deprecated This option is deprecated and will be removed in Deno 2.0. + */ + keyFile?: string; transport?: "tcp"; } -- cgit v1.2.3