tlsutil

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

func Certificate(host ...string) (tls.Certificate, error)

func GenCert

func GenCert() (cert []byte, privateKey []byte, err error)

GenCert generates a temporary certificate for plugin authentication. The certificate and private key are returns in PEM format.

func GenTLSConfig

func GenTLSConfig() (*tls.Config, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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