Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CACSRTemplate string = `` /* 291-byte string literal not displayed */
CACSRTemplate is the template for the CA CSR.
View Source
var NodeCSRTemplate string = `` /* 354-byte string literal not displayed */
NodeCSRTemplate is the template for the node CSR.
Functions ¶
func NewSignerFromCertificate ¶
func NewSignerFromCertificate(caCert *cert.Certificate, policy *config.Signing) (signer.Signer, error)
NewSignerFromCertificate inits a new signer from the internal *cert.Certificate type.
Types ¶
type CA ¶
type CA struct {
// contains filtered or unexported fields
}
CA is a Certificate Authority.
func (*CA) GenerateAndSignNodeCert ¶
func (ca *CA) GenerateAndSignNodeCert(input *cert.NodeCSRInput) (*cert.Certificate, error)
GenerateAndSignNodeCert generates certificate and signs an end-user (node) certificate based on the NodeCSR input.
func (*CA) GenerateCACert ¶
func (ca *CA) GenerateCACert(input *cert.CACSRInput) (*cert.Certificate, error)
GenerateCACert generates a new CA certificate and key based on the CSR input.
Click to show internal directories.
Click to hide internal directories.