Versions in this module Expand all Collapse all v1 v1.0.2 May 18, 2023 Changes in this version + func CreateCACertificate(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer, ...) (*x509.Certificate, crypto.Signer) + func CreateCertificate(tb testing.TB, tmpl, parent *x509.Certificate, pub, priv interface{}) *x509.Certificate + func CreateWebCredentials(t testing.TB) (*x509.CertPool, *tls.Certificate) + func CreateX509Certificate(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer, ...) (*x509.Certificate, crypto.Signer) + func CreateX509SVID(tb testing.TB, parent *x509.Certificate, parentKey crypto.Signer, ...) (*x509.Certificate, crypto.Signer) + type CA struct + func New(tb testing.TB, td spiffeid.TrustDomain) *CA + func (ca *CA) Bundle() *spiffebundle.Bundle + func (ca *CA) ChildCA(options ...CertificateOption) *CA + func (ca *CA) CreateJWTSVID(id spiffeid.ID, audience []string) *jwtsvid.SVID + func (ca *CA) CreateX509Certificate(options ...CertificateOption) ([]*x509.Certificate, crypto.Signer) + func (ca *CA) CreateX509SVID(id spiffeid.ID, options ...CertificateOption) *x509svid.SVID + func (ca *CA) JWTAuthorities() map[string]crypto.PublicKey + func (ca *CA) JWTBundle() *jwtbundle.Bundle + func (ca *CA) X509Authorities() []*x509.Certificate + func (ca *CA) X509Bundle() *x509bundle.Bundle + type CertificateOption interface + func WithID(id spiffeid.ID) CertificateOption + func WithIPAddresses(ips ...net.IP) CertificateOption + func WithKeyUsage(keyUsage x509.KeyUsage) CertificateOption + func WithLifetime(notBefore, notAfter time.Time) CertificateOption + func WithSerial(serial *big.Int) CertificateOption + func WithSubject(subject pkix.Name) CertificateOption