tlstest

package
v0.0.0-...-574cb03 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package tlstest provides utilities for testing with TLS certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCert

func GenerateCert(options *CertOptions) (cert *tls.Certificate, certPEMBlock, keyPEMBlock []byte, err error)

GenerateCert generates a certificate with the given options.

Types

type CertOptions

type CertOptions struct {
	Parent     *tls.Certificate
	Template   *x509.Certificate
	PrivateKey crypto.Signer
}

CertOptions are certificate options.

Jump to

Keyboard shortcuts

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