tlstest

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2020 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 {
	Template *x509.Certificate
	Parent   *tls.Certificate
	Curve    elliptic.Curve
}

CertOptions are certificate options.

Jump to

Keyboard shortcuts

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