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)