Skip to content

Commit

Permalink
docs: Deno.ConnectTlsOptions.certChain migration guide (#362)
Browse files Browse the repository at this point in the history
  • Loading branch information
iuioiua committed Mar 15, 2024
1 parent fba456a commit fc68d84
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions runtime/manual/advanced/migrate_deprecations.md
Expand Up @@ -88,6 +88,26 @@ Use [`Deno.Conn`](https://deno.land/api?s=Deno.Conn) instance methods instead.

See the [Deno 1.40 blog post][Deno 1.40 blog post] for details.

### `Deno.ListenTlsOptions.certChain`

Use
[`Deno.ConnectTlsOptions.cert`](https://deno.land/api?s=Deno.ConnectTlsOptions#prop_cert)
instead.

```diff
const caCert = await Deno.readTextFile("./certs/my_custom_root_CA.pem");
using conn = await Deno.connectTls({
hostname: "192.0.2.1",
port: 80,
caCerts: [caCert],
- certChain: Deno.readTextFileSync("./server.crt"),
+ cert: Deno.readTextFileSync("./server.crt"),
key: Deno.readTextFileSync("./server.key"),
});
```

See [deno#22274](https://github.com/denoland/deno/pull/22274) for details.

### `Deno.ConnectTlsOptions.certFile`

Use
Expand Down

0 comments on commit fc68d84

Please sign in to comment.