Documentation ¶
Index ¶
- func GenerateInClusterServiceName(props TlsCertificateProps) string
- func IsTlsPairShouldBeUpdated(tlsPair *TlsPemPair) bool
- func TlsCertificateGenerateRequest(privateKey *rsa.PrivateKey, props TlsCertificateProps) (*certificates.CertificateSigningRequest, error)
- func TlsCertificateGetExpirationDate(certData []byte) (*time.Time, error)
- func TlsCertificateRequestToPem(csrRaw []byte) []byte
- func TlsGeneratePrivateKey() (*rsa.PrivateKey, error)
- func TlsPrivateKeyToPem(rsaKey *rsa.PrivateKey) []byte
- type TlsCertificateProps
- type TlsPemPair
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateInClusterServiceName ¶
func GenerateInClusterServiceName(props TlsCertificateProps) string
GenerateInClusterServiceName The generated service name should be the common name for TLS certificate
func IsTlsPairShouldBeUpdated ¶
func IsTlsPairShouldBeUpdated(tlsPair *TlsPemPair) bool
IsTlsPairShouldBeUpdated checks if TLS pair has expited and needs to be updated
func TlsCertificateGenerateRequest ¶
func TlsCertificateGenerateRequest(privateKey *rsa.PrivateKey, props TlsCertificateProps) (*certificates.CertificateSigningRequest, error)
TlsCertificateGenerateRequest Generates raw certificate signing request
func TlsCertificateGetExpirationDate ¶
TlsCertificateGetExpirationDate Gets NotAfter property from raw certificate
func TlsCertificateRequestToPem ¶
TlsCertificateRequestToPem Creates PEM block from raw certificate request
func TlsGeneratePrivateKey ¶
func TlsGeneratePrivateKey() (*rsa.PrivateKey, error)
TlsGeneratePrivateKey Generates RSA private key
func TlsPrivateKeyToPem ¶
func TlsPrivateKeyToPem(rsaKey *rsa.PrivateKey) []byte
TlsPrivateKeyToPem Creates PEM block from private key object
Types ¶
type TlsCertificateProps ¶
TlsCertificateProps Properties of TLS certificate which should be issued for webhook server
type TlsPemPair ¶
TlsPemPair The pair of TLS certificate corresponding private key, both in PEM format