Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = logPublic
Functions ¶
func GenerateCerts ¶
func GenerateCerts(cfg *Config)
Types ¶
type Config ¶
type Config struct {
DNSAddress string `default:"" usage:"Use this DNS server for DNS lookups. (If left empty, the system resolver will be used.)"`
DNSPort int `default:"53" usage:"Use this port for DNS lookups."`
ListenIP string `default:"127.127.127.127" usage:"Listen on this IP address."`
RootCert string `default:"root_cert.pem" usage:"Sign with this root CA certificate."`
RootKey string `default:"root_key.pem" usage:"Sign with this root CA private key."`
ListenChain string `default:"listen_chain.pem" usage:"Listen with this TLS certificate chain."`
ListenKey string `default:"listen_key.pem" usage:"Listen with this TLS private key."`
ConfigDir string // path to interpret filenames relative to
}
Click to show internal directories.
Click to hide internal directories.