certs

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TLSConfigFor

func TLSConfigFor(domain string, subs ...string) *tls.Config

TLSConfigFor generates a TLS configuration for the given domain and subdomains. If the domain is "localhost", it generates a self-signed certificate; otherwise, it obtains a remotely signed certificate. This function ensures that the generated TLS configuration is appropriate for the specified domain and subdomains.

Parameters: - domain: string The primary domain for the TLS configuration. - subs: ...string A variadic list of subdomains associated with the domain.

Returns: - *tls.Config: The TLS configuration with the appropriate certificate.

Types

This section is empty.

Jump to

Keyboard shortcuts

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