Categorygithub.com/michaelpeterswa/go-mtls
modulepackage
1.0.0
Repository: https://github.com/michaelpeterswa/go-mtls.git
Documentation: pkg.go.dev

# README

go-mtls

a library to manage generating tls credentials to be used for mutual tls in grpc services

Made With Go Made With gRPC

# Functions

NewX509Files creates a new X509Files struct, with file-paths for the certificate, key, and certificate authority.
WithFilesystem is an option to set the underlying filesystem for loading the x509 files.

# Constants

Client-mode Mutual TLS.
Server-mode Mutual TLS.

# Structs

X509Files is a struct to hold the paths to the certificate, key, and certificate authority files.

# Type aliases

MTLSConfig is a type to support the Client/Server mode iota.
X509FilesOption is a type to support the functional options pattern.