Documentation
¶
Index ¶
- func ClientCreds(endpoint string, client *trust.Provider, servers trust.ProviderPool) (_ grpc.DialOption, err error)
- func Config(server *trust.Provider, clients trust.ProviderPool) (_ *tls.Config, err error)
- func ServerCreds(server *trust.Provider, clients trust.ProviderPool) (_ grpc.ServerOption, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientCreds ¶
func ClientCreds(endpoint string, client *trust.Provider, servers trust.ProviderPool) (_ grpc.DialOption, err error)
ClientCreds returns the grpc.DialOption to create a gRPC client with mTLS.
func Config ¶
Config returns the standard TLS configuration for the TRISA network, loading the certificate from the specified provider. Using this TLS configuration ensures that all TRISA peer-to-peer connections are handled and verified correctly.
func ServerCreds ¶
func ServerCreds(server *trust.Provider, clients trust.ProviderPool) (_ grpc.ServerOption, err error)
ServerCreds returns the grpc.ServerOption to create a gRPC server with mTLS.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.