From 4a6bd8bd646e75364328d283c2df278e2483ce7e Mon Sep 17 00:00:00 2001 From: Piv <18462828+Piv200@users.noreply.github.com> Date: Sun, 17 Nov 2019 17:23:30 +1030 Subject: [PATCH] Use server credentials for server --- MotorControl/MotorServer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MotorControl/MotorServer.py b/MotorControl/MotorServer.py index 635a95a..8b67b2d 100755 --- a/MotorControl/MotorServer.py +++ b/MotorControl/MotorServer.py @@ -69,7 +69,7 @@ class MotorServicer(motorService_pb2_grpc.CarControlServicer): pvtKeyBytes = open(pvtKeyPath, 'rb').read() pvtCertBytes = open(pvtCertPath, 'rb').read() - return grpc.ssl_channel_credentials(pvtCertBytes, pvtKeyBytes) + return grpc.ssl_server_credentials([pvtKeyBytes, pvtCertBytes]) motor = Motor() servo = Servo(servo_pin)