tls

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2025 License: MIT Imports: 10 Imported by: 2

Documentation

Overview

Package tls provides utilities for generating self-signed TLS certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateTLS

func GenerateTLS(validFor time.Duration, hosts []string) (cert, key []byte, err error)

GenerateTLS generated a TLS certificate and key. based on https://go.dev/src/crypto/tls/generate_cert.go - `hosts`: a list of ip / dns names to include in the certificate

Types

This section is empty.

Jump to

Keyboard shortcuts

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