Documentation ¶
Overview ¶
Package localca implements a localca that is useful for testing the transport package. To use the localca, see the New and Load functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExampleRequest ¶
func ExampleRequest() *csr.CertificateRequest
ExampleRequest can be used as a sample request, or the returned request can be modified.
func ExampleSigningConfig ¶
ExampleSigningConfig returns a sample config.Signing with only a default profile.
Types ¶
type CA ¶
type CA struct { // Label and Profile are used to select the CFSSL signer // components if they should be anything but the default. Label string `json:"label"` Profile string `json:"profile"` // The KeyFile and CertFile are required when using Load to // construct a CA. KeyFile string `json:"private_key,omitempty"` CertFile string `json:"certificate,omitempty"` // contains filtered or unexported fields }
CA is a local transport CertificateAuthority that is useful for tests.
func NewFromSigner ¶
NewFromSigner constructs a local CA from a CFSSL signer.
func (*CA) CACertificate ¶
CACertificate returns the certificate authority's certificate.
Click to show internal directories.
Click to hide internal directories.