tlscerts

package
v0.0.0-...-51ad254 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCert

func CreateCert(priv interface{}, extKeyUsage x509.ExtKeyUsage, notBefore, notAfter time.Time, host string, isCertAuth bool) (*bytes.Buffer, error)

func CreateCertValidity

func CreateCertValidity(validFrom string, validFor time.Duration) (time.Time, time.Time, error)

func EncodePrivateKey

func EncodePrivateKey(priv interface{}) (*bytes.Buffer, error)

func GeneratePrivateKey

func GeneratePrivateKey(algorithm string) (interface{}, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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