package
1.2.1
Repository: https://github.com/mellanox/gnxi.git
Documentation: pkg.go.dev

# Functions

AttachToContext attaches credentials to a context.
AuthorizeUser checks for valid credentials in the context Metadata.
Extract the SAN of the client certification from and compare it to UFM ssl_cert hostnames, in our server_cert_hostnames.
ClientCredentials generates gRPC DialOptions for existing credentials.
GetCAEntity gets a CA entity from a CA file and private key.
LoadCertificates loads certificates from files and exits if there's an error.
ParseCertificates gets certificates from files or generates them from the CA.
ServerCredentials generates gRPC ServerOptions for existing credentials.
SetTargetName sets the targetName variable.

# Variables

TargetName is a flag containing the hostname verfified by TLS handshake.