tests

package
v5.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateWithKey

type CertificateWithKey struct {
	Certificate    *x509.Certificate
	PrivateKey     *rsa.PrivateKey
	PrivateKeyPEM  []byte
	CertificatePEM []byte
}

func GenerateCA

func GenerateCA() (*CertificateWithKey, error)

func GenerateCertificateWithCA

func GenerateCertificateWithCA(ca *CertificateWithKey) (*CertificateWithKey, error)

func NewUnstartedServerWithTLSConfig

func NewUnstartedServerWithTLSConfig(handler http.Handler) (*CertificateWithKey, *httptest.Server, error)

Jump to

Keyboard shortcuts

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