certs

package
v0.0.0-...-a06eb0c Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const RsaKeySize = 4096

Variables

This section is empty.

Functions

func BeValidCertSignedBy

func BeValidCertSignedBy(expectedCA interface{}) types.GomegaMatcher

func BeValidSelfSignedCert

func BeValidSelfSignedCert() types.GomegaMatcher

func FailCertValidationWithMessage

func FailCertValidationWithMessage(expectedMessage interface{}) types.GomegaMatcher

func GenerateSelfSigned

func GenerateSelfSigned(certOptions CertOptions) ([]byte, []byte, error)

func GenerateSigned

func GenerateSigned(certOptions CertOptions, caCert []byte, caKey []byte) ([]byte, []byte, error)

Types

type CertOptions

type CertOptions struct {
	CommonName         string
	OrganizationalUnit string
	IsCA               bool
	NotBefore          time.Time
	NotAfter           time.Time
}

Jump to

Keyboard shortcuts

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