You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ncdns/certinject/certinject.go

18 lines
508 B
Go

package certinject
import (
"github.com/hlandau/xlog"
"gopkg.in/hlandau/easyconfig.v1/cflag"
)
var log, Log = xlog.New("ncdns.certinject")
var (
flagGroup = cflag.NewGroup(nil, "certstore")
nssFlag = cflag.Bool(flagGroup, "nss", false, nssExplain)
certExpirePeriod = cflag.Int(flagGroup, "expire", 60*30, "Duration "+
"(in seconds) after which TLS certs will be removed from the "+
"trust store. Making this smaller than the DNS TTL (default "+
"600) may cause TLS errors.")
)