cert

package module
v0.0.0-...-18fc719 Latest Latest
Warning

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

Go to latest
Published: May 4, 2024 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAutoCert

func AddAutoCert(org, unit string) error

func AddFileCert

func AddFileCert(keyFile, certFile string) error

func AddTLSCert

func AddTLSCert(cert tls.Certificate) error

func GenX509Cert

func GenX509Cert(subject pkix.Name, ipAddrs []net.IP) (cert, key *pem.Block, err error)
subject := pkix.Name{
	Organization:       []string{"lib10"},
	OrganizationalUnit: []string{"wsnode"},
	CommonName:         "auto-tls",
}

func GetTLSConfig

func GetTLSConfig() *tls.Config

func X509KeyPair

func X509KeyPair(cert, key *pem.Block) (tls.Certificate, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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