Documentation
¶
Index ¶
Constants ¶
View Source
const ( PersistedCertFileName = "gonetsim-cert.pem" PersistedKeyFileName = "gonetsim-key.pem" PersistedCAFileName = "gonetsim-ca.pem" )
Variables ¶
This section is empty.
Functions ¶
func GenerateSelfSigned ¶
func GenerateSelfSigned(opts SelfSignedOptions) (tls.Certificate, error)
func GenerateSelfSignedWithCA ¶
func GenerateSelfSignedWithCA(opts SelfSignedOptions) (certPEM []byte, keyPEM []byte, caPEM []byte, err error)
Types ¶
type Config ¶
type Config struct {
CertFile string
KeyFile string
// controls how the fallback self-signed cert is generated
// when the cert or key aren't provided
SelfSigned SelfSignedOptions
// defaults to tls.VersionTLS12 when zero.
MinVersion uint16
}
func (Config) Regenerate ¶
Click to show internal directories.
Click to hide internal directories.