Documentation ¶
Index ¶
- func CertificateGenerateRequest(privateKey *rsa.PrivateKey, props TlsCertificateProps, fqdncn bool) (*certificates.CertificateSigningRequest, error)
- func GenerateInClusterServiceName(props TlsCertificateProps) string
- func IsTLSPairShouldBeUpdated(tlsPair *TlsPemPair) bool
- 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 CertificateGenerateRequest ¶ added in v1.1.0
func CertificateGenerateRequest(privateKey *rsa.PrivateKey, props TlsCertificateProps, fqdncn bool) (*certificates.CertificateSigningRequest, error)
CertificateGenerateRequest Generates raw certificate signing request
func GenerateInClusterServiceName ¶
func GenerateInClusterServiceName(props TlsCertificateProps) string
GenerateInClusterServiceName The generated service name should be the common name for TLS certificate
func IsTLSPairShouldBeUpdated ¶ added in v1.1.0
func IsTLSPairShouldBeUpdated(tlsPair *TlsPemPair) bool
IsTLSPairShouldBeUpdated checks if TLS pair has expited and needs to be updated
func TLSGeneratePrivateKey ¶ added in v1.1.0
func TLSGeneratePrivateKey() (*rsa.PrivateKey, error)
TLSGeneratePrivateKey Generates RSA private key
func TLSPrivateKeyToPem ¶ added in v1.1.0
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
Click to show internal directories.
Click to hide internal directories.