Skip to content

Commit

Permalink
Update cluster.ts, certFile is deprecated in Deno. Now is caCerts. (#300
Browse files Browse the repository at this point in the history
)
  • Loading branch information
hviana authored Nov 24, 2021
1 parent 97a500c commit a67f6bc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ export class Cluster {

if (!options.tls) return Deno.connect(denoConnectOps);

if (options.certFile) denoConnectOps.certFile = options.certFile;
if (options.certFile) {
denoConnectOps.caCerts = [Deno.readTextFileSync(options.certFile)];
}

if (options.keyFile) {
//TODO: need something like const key = decrypt(options.keyFile) ...
Expand Down

0 comments on commit a67f6bc

Please sign in to comment.