certs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2026 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	CAFile         string `long:"ca_file"          env:"CA_FILE"          default:"ca.crt"      description:"Path to the CA cert file to load."`
	ClientCertFile string `long:"client_cert_file" env:"CLIENT_CERT_FILE" default:"client.crt"  description:"Path to the client certificate .pem file."`
	ClientKeyFile  string `long:"client key file"  env:"CLIENT_KEY_FILE"  default:"client.key"  description:"Path to the client key .pem file."`
	ServerCertFile string `long:"server_cert_file" env:"SERVER_CERT_FILE" default:"server.crt"  description:"Path to the server certificate .pem file."`
	ServerKeyFile  string `long:"server_key_file"  env:"SERVER_KEY_FILE"  default:"server.key"  description:"Path to the server key .pem file."`
}

Opts holds options for certificates.

func (Opts) ClientTLSConfig

func (c Opts) ClientTLSConfig() (*tls.Config, error)

ClientTLSConfig returns a client TLS config.

func (Opts) ServerTLSConfig

func (c Opts) ServerTLSConfig() (*tls.Config, error)

ServerTLSConfig returns a server TLS config.

Jump to

Keyboard shortcuts

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