Versions in this module Expand all Collapse all v1 v1.16.3 Oct 23, 2019 Changes in this version + const CertificateBlockType + const PrivateKeyBlockType + const PublicKeyBlockType + const RSAPrivateKeyBlockType + func CSROrKeyExist(csrDir, name string) bool + func CertOrKeyExist(pkiPath, name string) bool + func CertificateRequestFromFile(file string) (*x509.CertificateRequest, error) + func EncodeCSRPEM(csr *x509.CertificateRequest) []byte + func EncodeCertPEM(cert *x509.Certificate) []byte + func EncodePublicKeyPEM(key crypto.PublicKey) ([]byte, error) + func GetAPIServerAltNames(cfg *kubeadmapi.InitConfiguration) (*certutil.AltNames, error) + func GetEtcdAltNames(cfg *kubeadmapi.InitConfiguration) (*certutil.AltNames, error) + func GetEtcdPeerAltNames(cfg *kubeadmapi.InitConfiguration) (*certutil.AltNames, error) + func HasServerAuth(cert *x509.Certificate) bool + func NewCSR(cfg certutil.Config, key crypto.Signer) (*x509.CertificateRequest, error) + func NewCSRAndKey(config *certutil.Config) (*x509.CertificateRequest, crypto.Signer, error) + func NewCertAndKey(caCert *x509.Certificate, caKey crypto.Signer, config *certutil.Config) (*x509.Certificate, crypto.Signer, error) + func NewCertificateAuthority(config *certutil.Config) (*x509.Certificate, crypto.Signer, error) + func NewPrivateKey() (crypto.Signer, error) + func NewSignedCert(cfg *certutil.Config, key crypto.Signer, caCert *x509.Certificate, ...) (*x509.Certificate, error) + func PathsForCertAndKey(pkiPath, name string) (string, string) + func TryLoadCSRAndKeyFromDisk(pkiPath, name string) (*x509.CertificateRequest, crypto.Signer, error) + func TryLoadCertAndKeyFromDisk(pkiPath, name string) (*x509.Certificate, crypto.Signer, error) + func TryLoadCertFromDisk(pkiPath, name string) (*x509.Certificate, error) + func TryLoadKeyFromDisk(pkiPath, name string) (crypto.Signer, error) + func TryLoadPrivatePublicKeyFromDisk(pkiPath, name string) (*rsa.PrivateKey, *rsa.PublicKey, error) + func WriteCSR(csrDir, name string, csr *x509.CertificateRequest) error + func WriteCert(pkiPath, name string, cert *x509.Certificate) error + func WriteCertAndKey(pkiPath string, name string, cert *x509.Certificate, key crypto.Signer) error + func WriteKey(pkiPath, name string, key crypto.Signer) error + func WritePublicKey(pkiPath, name string, key crypto.PublicKey) error