test

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2021 License: GPL-3.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCertificate added in v0.15.0

func GenerateCertificate(notBefore time.Time, validityInDays int, privKey crypto.Signer) []byte

func GenerateCertificateCA added in v0.16.0

func GenerateCertificateCA(notBefore time.Time, validityInDays int, privKey crypto.Signer) []byte

GenerateCertificateCA generates a CA compatible with the spec including ExtKeyUsage

func GenerateCertificateEx

func GenerateCertificateEx(notBefore time.Time, privKey crypto.Signer, validityInDays int, isCA bool, keyUsage x509.KeyUsage) []byte

func GenerateCertificateExt added in v0.16.0

func GenerateCertificateExt(notBefore time.Time, privKey crypto.Signer, validityInDays int, isCA bool, keyUsage x509.KeyUsage, extKeyUsage []x509.ExtKeyUsage) []byte

func GenerateRSAKey added in v0.15.0

func GenerateRSAKey() *rsa.PrivateKey

Types

This section is empty.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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