cfsslsrv

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CFSSLServer

type CFSSLServer struct {
	// contains filtered or unexported fields
}

CFSSLServer exposes methods for launching an embedded CFSSL server, retrieving its CA info, and requesting signed certs from it.

func NewCFSSLServer added in v0.17.0

func NewCFSSLServer(ca, caKey []byte) (*CFSSLServer, error)

NewCFSSLServer constructs a CFSSLServer instance with the given configuration. It takes an optional PEM-encoded CA and CA key used by the server. If a CA and CA key are not provided, they will be generated and used to launch the server.

func (*CFSSLServer) GetRootCA

func (cs *CFSSLServer) GetRootCA() []byte

GetRootCA returns the root CA used by the CFSSL server.

func (*CFSSLServer) RequestCert

func (cs *CFSSLServer) RequestCert(req csr.CertificateRequest) ([]byte, []byte, error)

RequestCert returns a new certificate signed by the CFSSL server.

func (*CFSSLServer) RequestIntermediateCA

func (cs *CFSSLServer) RequestIntermediateCA(req csr.CertificateRequest) ([]byte, []byte, error)

RequestIntermediateCA returns a new intermediate CA signed by the CFSSL server.

func (*CFSSLServer) Start

func (cs *CFSSLServer) Start() error

Start launches the CFSSL server.

Jump to

Keyboard shortcuts

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