certMgr

package
v0.0.0-...-4c99fb1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2017 License: Apache-2.0, MIT Imports: 0 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAppConfig = &AppConfig{
		CertFilename:       "cert.pem",
		KeyFilename:        "key.pem",
		Config:             "",
		HTTPListenAddress:  ":8443",
		GRPCListenAddress:  ":50051",
		AuthServiceAddress: "auth.dstcorp.net:443",
		Insecure:           false,
		Verbose:            false,
		Backend:            defaultBackendConfig,
	}
)

the default configuration

Functions

This section is empty.

Types

type AppConfig

type AppConfig struct {
	Certificate        string // the pem-encoded certificate for the service
	CertFilename       string // the name of the file containing the pem-encoded certicate for the service
	Insecure           bool   // for testing purposes, do not start-up TLS endpoints
	KeyFilename        string // the name of the file containing the pem-encoded key for the service's cert
	Config             string // load config data from this file (may be a url)
	HTTPListenAddress  string
	GRPCListenAddress  string
	AuthServiceAddress string
	Verbose            bool

	// specific config options for each command & subcommand
	Backend BackendConfig
}

AppConfig provides the global configuration of the application.

type BackendConfig

type BackendConfig struct {
	AuthorizedCreators   []string // users authorized to create new certificates (an empty list permits anyone)
	Bundle               string   // the pem-encoded bundle of intermediate CA's
	SigningCACertificate string   // the pem-encoded signing CA
	SigningCAKeyFilename string   // filename for the CA key
	MaxDuration          int      // maximum # of days this CA will issue a cert
}

Jump to

Keyboard shortcuts

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