Documentation ¶
Overview ¶
Package selfsign is a test helper that generates self signed certificate.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSelfSigned ¶
func GenerateSelfSigned() (tls.Certificate, error)
GenerateSelfSigned creates a self-signed certificate
func GenerateSelfSignedWithDNS ¶
func GenerateSelfSignedWithDNS(cn string, sans ...string) (tls.Certificate, error)
GenerateSelfSignedWithDNS creates a self-signed certificate
func SelfSign ¶
func SelfSign(key crypto.PrivateKey) (tls.Certificate, error)
SelfSign creates a self-signed certificate from a elliptic curve key
func WithDNS ¶
func WithDNS(key crypto.PrivateKey, cn string, sans ...string) (tls.Certificate, error)
WithDNS creates a self-signed certificate from a elliptic curve key
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.