Documentation ¶
Index ¶
- func GenerateLeafCert(subject string, oidcIssuer string, parentTemplate *x509.Certificate, ...) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GenerateLeafCertWithExpiration(subject string, oidcIssuer string, expiration time.Time, ...) (*x509.Certificate, error)
- func GenerateLeafCertWithGitHubOIDs(subject string, oidcIssuer string, ...) (*x509.Certificate, *ecdsa.PrivateKey, error)
- func GenerateLeafCertWithSubjectAlternateNames(dnsNames []string, emailAddresses []string, ipAddresses []net.IP, ...) (*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 string, oidcIssuer string, parentTemplate *x509.Certificate, parentPriv crypto.Signer, exts ...pkix.Extension) (*x509.Certificate, *ecdsa.PrivateKey, error)
func GenerateLeafCertWithExpiration ¶ added in v1.12.0
func GenerateLeafCertWithExpiration(subject string, oidcIssuer string, expiration time.Time, priv *ecdsa.PrivateKey, parentTemplate *x509.Certificate, parentPriv crypto.Signer) (*x509.Certificate, error)
func GenerateLeafCertWithGitHubOIDs ¶ added in v1.10.0
func GenerateLeafCertWithGitHubOIDs(subject string, oidcIssuer string, githubWorkflowTrigger, githubWorkflowSha, githubWorkflowName, githubWorkflowRepository, githubWorkflowRef string, parentTemplate *x509.Certificate, parentPriv crypto.Signer) (*x509.Certificate, *ecdsa.PrivateKey, error)
func GenerateLeafCertWithSubjectAlternateNames ¶ added in v1.8.0
func GenerateRootCa ¶
func GenerateRootCa() (*x509.Certificate, *ecdsa.PrivateKey, error)
func GenerateSubordinateCa ¶
func GenerateSubordinateCa(rootTemplate *x509.Certificate, rootPriv crypto.Signer) (*x509.Certificate, *ecdsa.PrivateKey, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.