Documentation ¶
Overview ¶
Package twofa contains routines for getting short lived certificate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Duration of generated cert. Default 16 hours. Duration = flag.Duration("duration", 16*time.Hour, "Duration of the requested certificates in golang duration format (ex: 30s, 5m, 12h)") )
Functions ¶
func GetCertFromTargetUrls ¶
func GetCertFromTargetUrls( signer crypto.Signer, userName string, password []byte, targetUrls []string, rootCAs *x509.CertPool, skipu2f bool, addGroups bool, dialer net.Dialer, userAgentString string, logger log.DebugLogger) (sshCert []byte, x509Cert []byte, kubernetesCert []byte, err error)
GetCertFromTargetUrls gets a signed cert from the given target URLs.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.