tls

package
v0.0.0-...-b87209e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package tls provides a function to create a self signed certificate.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Certificate

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

Certificate generates a self signed certificate.

func CertificateQuic

func CertificateQuic() (tls.Certificate, error)

CertificateQuic generates a certificate for use with QUIC. NOTE: this is redundant, was just here to test, might remove later, still needs to check if its useful.

func GenTLSConfig

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

GenTLSConfig creates a self signed certificate and returns it in a TSL config.

func LoadTLSConfig

func LoadTLSConfig(certFile, keyFile string) (*tls.Config, error)

LoadTLSConfig loads a TLS config from certificate files.

Types

This section is empty.

Jump to

Keyboard shortcuts

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