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.
Click to show internal directories.
Click to hide internal directories.