tlsconfig

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultServerHosts

func DefaultServerHosts(extraHosts ...string) []string

DefaultServerHosts returns the hosts covered by the generated local certificate.

func EnsureSelfSignedCertificate

func EnsureSelfSignedCertificate(certFile, keyFile string, hosts []string) (bool, error)

EnsureSelfSignedCertificate creates or reuses a local self-signed server certificate. It returns true when a new certificate/key pair was written.

func LocalServerTLSConfig

func LocalServerTLSConfig() *tls.Config

LocalServerTLSConfig returns the TLS settings for the embedded local API server.

Types

type CertificatePaths

type CertificatePaths struct {
	CertFile string
	KeyFile  string
}

func DefaultCertificatePaths

func DefaultCertificatePaths(appName string) (CertificatePaths, error)

DefaultCertificatePaths returns the per-user auto-generated TLS certificate paths.

Jump to

Keyboard shortcuts

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