test

package
v0.0.0-...-e9cdb6e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 18, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package test contains test utilities

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL