Documentation
¶
Overview ¶
kubernetesca implements a certificate authority that uses the Kubernetes root CA to sign certificates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KubernetesCA ¶
type KubernetesCA struct {
// contains filtered or unexported fields
}
KubernetesCA handles signing of certificates using the Kubernetes root CA.
func New ¶
func New(log *slog.Logger, fileHandler file.Handler) *KubernetesCA
New creates a new KubernetesCA.
func (KubernetesCA) GetCertificate ¶
func (c KubernetesCA) GetCertificate(csr []byte) (cert []byte, err error)
GetCertificate creates a certificate for a node and signs it using the Kubernetes root CA.
func (KubernetesCA) GetNodeNameFromCSR ¶ added in v2.3.0
func (c KubernetesCA) GetNodeNameFromCSR(csr []byte) (string, error)
GetNodeNameFromCSR extracts the node name from a CSR.
Click to show internal directories.
Click to hide internal directories.