mtls

package
v0.99999.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2022 License: MIT Imports: 8 Imported by: 5

Documentation

Index

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

func Config(server *trust.Provider, clients trust.ProviderPool) (_ *tls.Config, err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL