Documentation ¶
Index ¶
- func CertificateRequestFailed(cr *cmapi.CertificateRequest) (string, bool)
- func CertificateRequestReady(cr *cmapi.CertificateRequest) bool
- func DefaultCertDuration(d string) (*metav1.Duration, error)
- func DefaultGenerateObjectMeta(opts options.Object) metav1.ObjectMeta
- func EncodeCSR(csr *x509.CertificateRequest, key crypto.Signer) ([]byte, error)
- func FileExists(path string) (bool, error)
- func ParseIPAddresses(ipsS []string) []net.IP
- func ParseURIs(urisS []string) ([]*url.URL, error)
- func WriteCertificateFile(path string, b []byte) error
- func WriteFile(path string, b []byte, perm os.FileMode) error
- type KeyBundle
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CertificateRequestFailed ¶
func CertificateRequestFailed(cr *cmapi.CertificateRequest) (string, bool)
func CertificateRequestReady ¶
func CertificateRequestReady(cr *cmapi.CertificateRequest) bool
func DefaultGenerateObjectMeta ¶
func DefaultGenerateObjectMeta(opts options.Object) metav1.ObjectMeta
func EncodeCSR ¶
EncodeCSR calls x509.CreateCertificateRequest to sign the given CSR. It returns a PEM encoded signed CSR.
func FileExists ¶
func ParseIPAddresses ¶
func WriteCertificateFile ¶
Types ¶
type KeyBundle ¶
type KeyBundle struct { PrivateKey crypto.Signer SignatureAlgorithm x509.SignatureAlgorithm PublicKeyAlgorithm x509.PublicKeyAlgorithm }
func DecodePrivateKeyBytes ¶
DecodePrivateKeyBytes will decode a PEM encoded private key into a crypto.Signer. It supports ECDSA and RSA private keys only. All other types will return err.
func ParsePrivateKeyFile ¶
Click to show internal directories.
Click to hide internal directories.