tls

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(ofs ...Option) (tls.Certificate, error)

Certificate gen tls Certificate

Types

type Option

type Option func(*Options)

func ExpiredIn

func ExpiredIn(expiredIn time.Duration) Option

func Hosts

func Hosts(hosts ...string) Option

func PublicKeyAlgorithm

func PublicKeyAlgorithm(algorithm x509.PublicKeyAlgorithm) Option

func RSABits

func RSABits(bits int) Option

func Subject

func Subject(subject *pkix.Name) Option

type Options

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

Jump to

Keyboard shortcuts

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