util

package
v1.13.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PKI

type PKI struct {
	RootCertPEM   []byte
	RootCert      *x509.Certificate
	LeafCert      *x509.Certificate
	LeafCertPEM   []byte
	LeafPKPEM     []byte
	LeafPK        crypto.Signer
	ClientCertPEM []byte
	ClientCert    *x509.Certificate
	ClientPKPEM   []byte
	ClientPK      crypto.Signer
	// contains filtered or unexported fields
}

func GenPKI

func GenPKI(t *testing.T, opts PKIOptions) PKI

func GenPKIError added in v1.13.0

func GenPKIError(opts PKIOptions) (PKI, error)

func (PKI) ClientGRPCCtx added in v1.13.0

func (p PKI) ClientGRPCCtx(t *testing.T) context.Context

type PKIOptions added in v1.13.0

type PKIOptions struct {
	LeafDNS   string
	LeafID    spiffeid.ID
	ClientDNS string
	ClientID  spiffeid.ID
}

Jump to

Keyboard shortcuts

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