tlstestutil

package module
v0.0.0-...-78be878 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2015 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tlstestutil provides a simple interface for creating TLS CA and leaf certificates for use in tests. This package is not reviewed/maintained for security in any sense.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CA

CA returns a new CA certificate, a pool containing that certificate, and the corresponding private key.

func Cert

func Cert(t *testing.T, caCert *x509.Certificate, caPrivKey *ecdsa.PrivateKey, hostname string, rnd io.Reader) tls.Certificate

Cert generates a new TLS certificate for hostname and signs it using caPrivKey.

Types

This section is empty.

Jump to

Keyboard shortcuts

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