We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbdb428 commit a481ac4Copy full SHA for a481ac4
https-frontend/client.py
@@ -18,7 +18,8 @@
18
19
# initialize the gRPC channel
20
addr = os.getenv('GRPC_SERVER_ADDRESS', 'localhost:50051')
21
-channel = grpc.insecure_channel(addr)
+creds = grpc.ssl_channel_credentials(open('/etc/ssl/certs/ca-certificates.crt').read())
22
+channel = grpc.secure_channel(addr, creds)
23
greeter = greet_pb2_grpc.GreeterStub(channel)
24
25
@app.route('/hello', methods=['GET'])
0 commit comments