From 09c659ae20b58f8a7917d8589ce35de48982637e Mon Sep 17 00:00:00 2001 From: Daniel McNally Date: Mon, 16 Apr 2018 16:58:28 -0700 Subject: [PATCH] Add SSL cipher suites It seems that recent versions of lnd requires cipher suites to be specified in the environment variables for the TLS handshake to work. Omitting this results in an error of `Handshake failed with fatal error SSL_ERROR_SSL: error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure.` --- guides/javascript-grpc.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/guides/javascript-grpc.md b/guides/javascript-grpc.md index 89a9e52..39d3661 100644 --- a/guides/javascript-grpc.md +++ b/guides/javascript-grpc.md @@ -37,6 +37,8 @@ Every time you work with Javascript gRPC, you will have to import `grpc`, load var grpc = require('grpc'); var fs = require("fs"); +process.env.GRPC_SSL_CIPHER_SUITES = "HIGH+ECDSA"; + // Lnd cert is at ~/.lnd/tls.cert on Linux and // ~/Library/Application Support/Lnd/tls.cert on Mac var lndCert = fs.readFileSync("~/.lnd/tls.cert");