django_socio_grpc.utils.ssl_credentials
Module Contents
Functions
Transform a pair of path to a pair of file content [path, path] -> [file_content, file_contetn] |
|
Return None of grpc.ssl_server_credentials(https://grpc.github.io/grpc/python/grpc.html#create-server-credentials) depending of if grpc_settings.PRIVATE_KEY_CERTIFICATE_CHAIN_PAIRS_PATH is set or no |
API
- django_socio_grpc.utils.ssl_credentials.load_credential_from_file(file_path)
- django_socio_grpc.utils.ssl_credentials.map_certificate_path_to_file_content()
Transform a pair of path to a pair of file content [path, path] -> [file_content, file_contetn]
- django_socio_grpc.utils.ssl_credentials.get_server_credentials()
Return None of grpc.ssl_server_credentials(https://grpc.github.io/grpc/python/grpc.html#create-server-credentials) depending of if grpc_settings.PRIVATE_KEY_CERTIFICATE_CHAIN_PAIRS_PATH is set or no