cfssl

package
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: BSD-3-Clause Imports: 15 Imported by: 0

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 NewCA

func NewCA(debug bool) *CA

NewCA initializes 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.

func (*CA) SetCACert

func (ca *CA) SetCACert(caCert *cert.Certificate) error

SetCACert sets the CA certificate with the provided certificate and initializes the signer.

Jump to

Keyboard shortcuts

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