certificate

package
v1.6.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2023 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KubernetesCACertPath = "/etc/kubernetes/pki/ca.crt"
	KubernetesCAKeyPath  = "/etc/kubernetes/pki/ca.key"
)
View Source
const (
	// PrivateKeyBlockType is a possible value for pem.Block.Type.
	PrivateKeyBlockType = "PRIVATE KEY"
	// PublicKeyBlockType is a possible value for pem.Block.Type.
	PublicKeyBlockType = "PUBLIC KEY"
	// CertificateBlockType is a possible value for pem.Block.Type.
	CertificateBlockType = "CERTIFICATE"
	// RSAPrivateKeyBlockType is a possible value for pem.Block.Type.
	RSAPrivateKeyBlockType = "RSA PRIVATE KEY"
)

Variables

This section is empty.

Functions

func CAKeyPair

CAKeyPair parses generated PKI CA certificate and key

func DownloadKubePKI added in v1.3.0

func DownloadKubePKI(s *state.State, _ *kubeoneapi.HostConfig, conn executor.Interface) error

func EncodePublicKeyPEM added in v1.0.0

func EncodePublicKeyPEM(key *rsa.PublicKey) ([]byte, error)

EncodePublicKeyPEM returns PEM-encoded public data

func GetCertificateSANs added in v1.4.0

func GetCertificateSANs(host string, alternativeNames []string) []string

GetCertificateSANs combines host name and subject alternative names into a list of SANs after transformation

func NewSignedTLSCert added in v1.3.0

func NewSignedTLSCert(name, namespace, domain string, caKey crypto.Signer, caCert *x509.Certificate) (map[string]string, error)

func UploadKubePKI added in v1.3.0

func UploadKubePKI(s *state.State, _ *kubeoneapi.HostConfig, conn executor.Interface) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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