Function - create_tls_channel

Function - create_tls_channel#

openfl.transport.grpc.common.create_tls_channel(uri, root_certificate, require_client_auth, certificate, private_key)[source]#

Creates a TLS-based gRPC channel.

Parameters:
  • uri (str) – The uniform resource identifier for the secure channel.

  • root_certificate (str) – The Certificate Authority filename.

  • require_client_auth (bool) – True enables client-side authentication, i.e. mTLS.

  • certificate (str) – The client certificate filename from the collaborator (signed by the certificate authority).

  • private_key (str) – The private key filename for the client certificate.

Returns:

A secure gRPC channel object

Return type:

grpc.Channel