Help us shape the future of Go! Take the 2026 Go Developer Survey

test

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustCreateCert added in v1.3.0

func MustCreateCert(t *testing.T, pkData []byte, spec *cmapi.Certificate) []byte

MustCreateCert returns a self-signed x509 certificate

func MustCreateCertWithNotBeforeAfter added in v1.3.0

func MustCreateCertWithNotBeforeAfter(t *testing.T, pkData []byte, spec *cmapi.Certificate, notBefore, notAfter time.Time) []byte

MustCreateCertWithNotBeforeAfter returns a self-signed x509 cert for Certificate with the provided NotBefore, NotAfter values

func MustCreateCryptoBundle

func MustCreateCryptoBundle(t *testing.T, crt *cmapi.Certificate, fixedClock *fakeclock.FakeClock) cryptoBundle

MustCreateCryptoBundle creates a cryptoBundle to be used with tests or fails.

func MustCreatePEMPrivateKey added in v1.3.0

func MustCreatePEMPrivateKey(t *testing.T) []byte

MustCreatePEMPrivateKey returns a PEM encoded 2048 bit RSA private key

func MustGenerateCSRImpl added in v1.3.0

func MustGenerateCSRImpl(t *testing.T, pkData []byte, cert *cmapi.Certificate) []byte

MustGenerateCSRImpl returns PEM encoded certificate signing request

Types

This section is empty.

Jump to

Keyboard shortcuts

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