Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TLSConfigFor ¶
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.
Click to show internal directories.
Click to hide internal directories.