package
1.9.2
Repository: https://github.com/tkestack/tke.git
Documentation: pkg.go.dev

# Functions

CertificateRequestFromFile returns the CertificateRequest from a given PEM-encoded file.
CertOrKeyExist returns a boolean whether the cert or the key exists.
CSROrKeyExist returns true if one of the CSR or key exists.
No description provided by the author
EncodeCertPEM returns PEM-endcoded certificate data.
EncodeCSRPEM returns PEM-encoded CSR data.
EncodePrivateKeyPEM returns PEM-encoded private key data.
EncodePublicKeyPEM returns PEM-encoded public data.
No description provided by the author
HasServerAuth returns true if the given certificate is a ServerAuth.
NewCertAndKey creates new certificate and key by passing the certificate authority certificate and key.
NewCertificateAuthority creates new certificate and private key for the certificate authority.
NewCSR creates a new CSR.
NewCSRAndKey generates a new key and CSR and that could be signed to create the given certificate.
NewPrivateKey creates an RSA private key.
NewSignedCert creates a signed certificate using the given CA certificate and key.
PathsForCertAndKey returns the paths for the certificate and key given the path and basename.
TryLoadCertAndKeyFromDisk tries to load a cert and a key from the disk and validates that they are valid.
TryLoadCertFromDisk tries to load the cert from the disk and validates that it is valid.
TryLoadCSRAndKeyFromDisk tries to load the CSR and key from the disk.
TryLoadKeyFromDisk tries to load the key from the disk and validates that it is valid.
TryLoadPrivatePublicKeyFromDisk tries to load the key from the disk and validates that it is valid.
WriteCert stores the given certificate at the given location.
WriteCertAndKey stores certificate and key at the specified location.
WriteCSR writes the pem-encoded CSR data to csrPath.
WriteKey stores the given key at the given location.
WritePublicKey stores the given public key at the given location.

# Constants

CertificateBlockType is a possible value for pem.Block.Type.
CertificateValidity defines the validity for all the signed certificates generated by kubeadm.
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.