kubernetesk8s.io/kubernetes/cmd/kubeadm/app/phases/certs/pkiutil Index | Files

package pkiutil

import "k8s.io/kubernetes/cmd/kubeadm/app/phases/certs/pkiutil"

Index

Functions

func CertOrKeyExist

func CertOrKeyExist(pkiPath, name string) bool

CertOrKeyExist retuns a boolean whether the cert or the key exists

func NewCertAndKey

func NewCertAndKey(caCert *x509.Certificate, caKey *rsa.PrivateKey, config certutil.Config) (*x509.Certificate, *rsa.PrivateKey, error)

func NewCertificateAuthority

func NewCertificateAuthority() (*x509.Certificate, *rsa.PrivateKey, error)

func TryLoadCertAndKeyFromDisk

func TryLoadCertAndKeyFromDisk(pkiPath, name string) (*x509.Certificate, *rsa.PrivateKey, error)

TryLoadCertAndKeyFromDisk tries to load a cert and a key from the disk and validates that they are valid

func TryLoadCertFromDisk

func TryLoadCertFromDisk(pkiPath, name string) (*x509.Certificate, error)

TryLoadCertFromDisk tries to load the cert from the disk and validates that it is valid

func TryLoadKeyFromDisk

func TryLoadKeyFromDisk(pkiPath, name string) (*rsa.PrivateKey, error)

TryLoadKeyFromDisk tries to load the key from the disk and validates that it is valid

func WriteCert

func WriteCert(pkiPath, name string, cert *x509.Certificate) error

func WriteCertAndKey

func WriteCertAndKey(pkiPath string, name string, cert *x509.Certificate, key *rsa.PrivateKey) error

func WriteKey

func WriteKey(pkiPath, name string, key *rsa.PrivateKey) error

func WritePublicKey

func WritePublicKey(pkiPath, name string, key *rsa.PublicKey) error

Source Files

pki_helpers.go

Version
v1.7.6
Published
Sep 14, 2017
Platform
js/wasm
Imports
7 packages
Last checked
18 minutes ago

Tools for package owners.