modulepackage
0.3.2
Repository: https://github.com/na4ma4/go-certprovider.git
Documentation: pkg.go.dev
# Functions
AddSearchPath adds a search path for the files.
CAFilename sets the certificate authority filename to a specific filename.
CertFilename sets the certificate filename to a specific filename.
CertProvider sets the file names to the defaults for a mTLS Server.
ClientProvider sets the file names to the defaults for a mTLS Client.
DynamicCertKeySize sets the key size of a dynamic certificate.
DynamicCertLifetime sets the lifetime of a dynamic certificate.
InsecureSkipVerifyOnDial sets the InsecureSkipVerify on the DialOptions.
InsecureSkipVerifyOnServer sets the InsecureSkipVerify on the ServerOptions.
KeyFilename sets the key filename to a specific filename.
MinTLSVersion sets a minimum TLS version.
MustDynamicCertProvider returns a DynamicCertProvider or panic.
MustFileCertProvider returns a FileProvider or panic.
NewDynamicProvider returns a new DynamicProvider using dynamically generated certificates.
NewFileProvider returns a new FileProvider using certs from the specified directory optionally also can be used for gRPC clients by setting server to false.
ProviderFromString returns a CertificateProviderType from a supplied string.
ServerProvider sets the file names to the defaults for a mTLS Server.
UseSystemCAPool sets whether the provider should include the system CA pool.
# Variables
ErrNoValidCertificates returned when no valid certificates are found in ca.pem.
# Structs
DynamicProvider uses files for the source of certificates and keys.
FileProvider uses files for the source of certificates and keys.
# Interfaces
CertificateProvider is an interface to a provider for certificates used with gRPC server and clients.
A Option sets options such as file paths, if a CA should be loaded, etc.