fengsp / django-grpc-framework

gRPC for Django.
https://djangogrpcframework.readthedocs.io/
Apache License 2.0
390 stars 52 forks source link

Added secure connection with certificate #13

Open dyohan9 opened 3 years ago

dyohan9 commented 3 years ago

This will allow the grpc server to also be able to run using certificates making the client's connection to the server secure.

2

12

dyohan9 commented 3 years ago

hello, could you review? @fengsp

dyohan9 commented 3 years ago

Hi @fengsp, could you review?

fengsp commented 3 years ago

@dyohan9 Adding secure connection support is good 👍 . I might use grpc_settings to set up this, just like interceptors config, so that we have more flexibility, we have grpc.ssl_server_credentials and grpc.dynamic_ssl_server_credentials, so we could let users config one ServerCredentials instance in grpc_settings and use it, now users can choose whatever method to create a ServerCredentials. Any better idea?