docs: add correct cipher suit to python grpc example

This commit is contained in:
Adrien Emery 2018-03-20 17:54:19 -07:00
parent 5ef0d4c8b9
commit 7fe719f77f

@ -53,6 +53,11 @@ import rpc_pb2_grpc as lnrpc
import grpc import grpc
import os import os
# Due to updated ECDSA generated tls.cert we need to let gprc know that
# we need to use that cipher suite otherwise there will be a handhsake
# error when we communicate with the lnd rpc server.
os.environ["GRPC_SSL_CIPHER_SUITES"] = 'HIGH+ECDSA'
# Lnd cert is at ~/.lnd/tls.cert on Linux and # Lnd cert is at ~/.lnd/tls.cert on Linux and
# ~/Library/Application Support/Lnd/tls.cert on Mac # ~/Library/Application Support/Lnd/tls.cert on Mac
cert = open(os.path.expanduser('~/.lnd/tls.cert'), 'rb').read() cert = open(os.path.expanduser('~/.lnd/tls.cert'), 'rb').read()