testhelper

package
v2.10.14 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOCSPStatus

func GetOCSPStatus(s tls.ConnectionState) (*ocsp.Response, error)

func NewOCSPResponder

func NewOCSPResponder(t *testing.T, issuerCertPEM, issuerKeyPEM string) *http.Server

func NewOCSPResponderBase

func NewOCSPResponderBase(t *testing.T, issuerCertPEM, respCertPEM, respKeyPEM string, embed bool, addr string, responseTTL time.Duration, method string) *http.Server

func NewOCSPResponderCustomAddress

func NewOCSPResponderCustomAddress(t *testing.T, issuerCertPEM, issuerKeyPEM string, addr string) *http.Server

func NewOCSPResponderCustomTimeout

func NewOCSPResponderCustomTimeout(t *testing.T, issuerCertPEM, issuerKeyPEM string, responseTTL time.Duration) *http.Server

func NewOCSPResponderDesignatedCustomAddress

func NewOCSPResponderDesignatedCustomAddress(t *testing.T, issuerCertPEM, respCertPEM, respKeyPEM string, addr string) *http.Server

func NewOCSPResponderPreferringHTTPMethod

func NewOCSPResponderPreferringHTTPMethod(t *testing.T, issuerCertPEM, issuerKeyPEM, method string) *http.Server

func SetOCSPStatus

func SetOCSPStatus(t *testing.T, ocspURL, certPEM string, status int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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