tls

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodePEM added in v1.4.0

func EncodePEM(ca *x509.Certificate, cert *x509.Certificate, priv *rsa.PrivateKey) ([]byte, []byte, []byte, error)

func GenerateCA added in v1.4.0

func GenerateCA(privateKey *rsa.PrivateKey) (*x509.Certificate, error)

func GenerateCertificate added in v1.4.0

func GenerateCertificate(ca *x509.Certificate, privateKey *rsa.PrivateKey, hosts []string, commonName string) (*x509.Certificate, error)

func Issue

func Issue(hosts []string) (*x509.Certificate, *x509.Certificate, *rsa.PrivateKey, error)

Issue returns CA certificate, TLS certificate and TLS private key

Types

This section is empty.

Jump to

Keyboard shortcuts

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