certificate

package
v2.20.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package certificate provides functions to create a certificate request and matching private key.

Index

Constants

View Source
const (
	// CertificateFilename is the path to the kubelets certificate.
	CertificateFilename = "/run/state/kubelet/pki/kubelet-client-crt.pem"
	// KeyFilename is the path to the kubelets private key.
	KeyFilename = "/run/state/kubelet/pki/kubelet-client-key.pem"
)

Variables

This section is empty.

Functions

func GetCertificateRequest

func GetCertificateRequest(csrTemplate *x509.CertificateRequest) (certificateRequest []byte, privateKey []byte, err error)

GetCertificateRequest returns a certificate request and matching private key.

func GetKubeletCertificateRequest added in v2.5.0

func GetKubeletCertificateRequest(nodeName string, ips []net.IP) (certificateRequest []byte, privateKey []byte, err error)

GetKubeletCertificateRequest returns a certificate request and matching private key for the kubelet.

Types

This section is empty.

Jump to

Keyboard shortcuts

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