Documentation ¶
Index ¶
- func CommonNameForCertificate(crt *v1alpha1.Certificate) (string, error)
- func DNSNamesForCertificate(crt *v1alpha1.Certificate) ([]string, error)
- func DecodeDERCertificateBytes(derBytes []byte) (*x509.Certificate, error)
- func DecodePKCS1PrivateKeyBytes(keyBytes []byte) (*rsa.PrivateKey, error)
- func DecodeX509CertificateBytes(certBytes []byte) (*x509.Certificate, error)
- func EncodePKCS1PrivateKey(pk *rsa.PrivateKey) []byte
- func GenerateCSR(commonName string, altNames ...string) *x509.CertificateRequest
- func GenerateRSAPrivateKey(keySize int) (*rsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonNameForCertificate ¶
func CommonNameForCertificate(crt *v1alpha1.Certificate) (string, error)
The provided Certificate *must* specify either a DNS name or a CommonName else this function will panic.
func DNSNamesForCertificate ¶
func DNSNamesForCertificate(crt *v1alpha1.Certificate) ([]string, error)
The provided Certificate *must* specify either a DNS name or a CommonName else this function will panic.
func DecodeDERCertificateBytes ¶ added in v0.1.0
func DecodeDERCertificateBytes(derBytes []byte) (*x509.Certificate, error)
func DecodePKCS1PrivateKeyBytes ¶
func DecodePKCS1PrivateKeyBytes(keyBytes []byte) (*rsa.PrivateKey, error)
func DecodeX509CertificateBytes ¶
func DecodeX509CertificateBytes(certBytes []byte) (*x509.Certificate, error)
func EncodePKCS1PrivateKey ¶
func EncodePKCS1PrivateKey(pk *rsa.PrivateKey) []byte
func GenerateCSR ¶
func GenerateCSR(commonName string, altNames ...string) *x509.CertificateRequest
func GenerateRSAPrivateKey ¶
func GenerateRSAPrivateKey(keySize int) (*rsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.