package
12.0.0+incompatible
Repository: https://github.com/kubernetes/client-go.git
Documentation: pkg.go.dev

# Functions

CanReadCertAndKey returns true if the certificate and key files already exists, otherwise returns false.
CertsFromFile returns the x509.Certificates contained in the given PEM-encoded file.
GenerateSelfSignedCertKey creates a self-signed certificate and key for the given host.
GenerateSelfSignedCertKeyWithFixtures creates a self-signed certificate and key for the given host.
MakeCSR generates a PEM-encoded CSR using the supplied private key, subject, and SANs.
MakeCSRFromTemplate generates a PEM-encoded CSR using the supplied private key and certificate request as a template.
NewPool returns an x509.CertPool containing the certificates in the given PEM-encoded file.
NewSelfSignedCACert creates a CA certificate.
ParseCertsPEM returns the x509.Certificates contained in the given PEM-encoded byte array Returns an error if a certificate could not be parsed, or if the data does not contain any certificates.
WriteCert writes the pem-encoded certificate data to certPath.

# Constants

CertificateBlockType is a possible value for pem.Block.Type.
CertificateRequestBlockType is a possible value for pem.Block.Type.

# Structs

AltNames contains the domain names and IP addresses that will be added to the API Server's x509 certificate SubAltNames field.
Config contains the basic fields required for creating a certificate.