key

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(host string, validFrom string, option ...Option)

Types

type K

type K struct {
	// contains filtered or unexported fields
}

K host string, validFrom string, ecdsaCurve string, rsaBits int, ed25519Key bool, validFor time.Duration, isCA bool

type Option

type Option func(k *K)

func EcdsaCurve

func EcdsaCurve(ecdsaCurve string) Option

func Ed25519Key

func Ed25519Key(ed25519Key bool) Option

func IsCA

func IsCA(isCA bool) Option

func RsaBits

func RsaBits(rsaBits int) Option

func SavePath

func SavePath(savePath string) Option

func ValidFor

func ValidFor(validFor time.Duration) Option

Jump to

Keyboard shortcuts

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