Documentation ¶
Overview ¶
Package test contains test utilities
Index ¶
- func GenerateLeafCert(subject, oidcIssuer string, parentTemplate *x509.Certificate, ...) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GenerateLeafCertWithSubjectAlternateNames(dnsNames, emailAddresses []string, ipAddresses []net.IP, uris []*url.URL, ...) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GenerateRootCa() (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GenerateSubordinateCa(rootTemplate *x509.Certificate, rootPriv crypto.Signer) (*x509.Certificate, *ecdsa.PrivateKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateLeafCert ¶
func GenerateLeafCert(subject, oidcIssuer string, parentTemplate *x509.Certificate, parentPriv crypto.Signer, exts ...pkix.Extension) (*x509.Certificate, *ecdsa.PrivateKey, error)
GenerateLeafCert generates a test leaf certificate
func GenerateLeafCertWithSubjectAlternateNames ¶
func GenerateLeafCertWithSubjectAlternateNames(dnsNames, emailAddresses []string, ipAddresses []net.IP, uris []*url.URL, oidcIssuer string, parentTemplate *x509.Certificate, parentPriv crypto.Signer) (*x509.Certificate, *ecdsa.PrivateKey, error)
GenerateLeafCertWithSubjectAlternateNames generates a test leaf certificate with the specified SANs
func GenerateRootCa ¶
func GenerateRootCa() (*x509.Certificate, *ecdsa.PrivateKey, error)
GenerateRootCa generates a test root CA
func GenerateSubordinateCa ¶
func GenerateSubordinateCa(rootTemplate *x509.Certificate, rootPriv crypto.Signer) (*x509.Certificate, *ecdsa.PrivateKey, error)
GenerateSubordinateCa generates a test intermediate CA
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.