testkeyutil

package
v0.0.0-...-8992e16 Latest Latest
Warning

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

Go to latest
Published: May 15, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTLSKeypairForTests

func GenerateTLSKeypairForTests(t *testing.T, commonname string, dns []string, ips []net.IP, parent *x509.Certificate, parentkey *rsa.PrivateKey) (*rsa.PrivateKey, *x509.Certificate)

func GenerateTLSKeypairForTests_WithTime

func GenerateTLSKeypairForTests_WithTime(t *testing.T, commonname string, dns []string, ips []net.IP, parent *x509.Certificate, parentkey *rsa.PrivateKey, issueat time.Time, duration time.Duration) (*rsa.PrivateKey, *x509.Certificate)

func GenerateTLSKeypairPEMsForTests

func GenerateTLSKeypairPEMsForTests(t *testing.T, commonname string, dns []string, ips []net.IP, parent []byte, parentkey []byte) (key []byte, keypkcs8 []byte, cert []byte)

func GenerateTLSRootForTests

func GenerateTLSRootForTests(t *testing.T, commonname string, dns []string, ips []net.IP) (*rsa.PrivateKey, *x509.Certificate)

func GenerateTLSRootPEMsForTests

func GenerateTLSRootPEMsForTests(t *testing.T, commonname string, dns []string, ips []net.IP) (key []byte, keypkcs8 []byte, cert []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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