Documentation
¶
Overview ¶
Package tls provides TLS certificate management for ShellGate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSelfSigned ¶
func GenerateSelfSigned(cfg SelfSignedConfig) (*tls.Config, string, error)
GenerateSelfSigned creates a self-signed ED25519 certificate. Returns the TLS config and the certificate's SHA-256 fingerprint.
func LoadCertificate ¶
LoadCertificate loads a TLS certificate from the given cert and key files.
func NewAutoTLS ¶
NewAutoTLS creates a TLS configuration that automatically obtains and renews Let's Encrypt certificates for the given domain.
Types ¶
type AutoTLSConfig ¶
AutoTLSConfig holds the configuration for automatic Let's Encrypt certificates.
Click to show internal directories.
Click to hide internal directories.