package
1.5.0-rc.1
Repository: https://github.com/kubevirt/kubevirt.git
Documentation: pkg.go.dev

# Functions

EncodeCertPEM returns PEM-endcoded certificate data.
EncodePrivateKeyPEM returns PEM-encoded private key data.
EncodePublicKeyPEM returns PEM-encoded public data.
NewECDSAPrivateKey creates an ECDSA private key.
NewRSAPrivateKey creates an RSA private key.
NewSelfSignedCACert creates a CA certificate.
NewSignedCert creates a signed certificate using the given CA certificate and key.
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.
ParsePrivateKeyPEM returns a private key parsed from a PEM block in the supplied data.
ParsePublicKeysPEM is a helper function for reading an array of rsa.PublicKey or ecdsa.PublicKey from a PEM-encoded byte array.

# Constants

CertificateBlockType is a possible value for pem.Block.Type.
CertificateRequestBlockType is a possible value for pem.Block.Type.
ECPrivateKeyBlockType is a possible value for pem.Block.Type.
PrivateKeyBlockType is a possible value for pem.Block.Type.
PublicKeyBlockType is a possible value for pem.Block.Type.
RSAPrivateKeyBlockType 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.