Documentation ¶
Index ¶
- func AddAutoCert(org, unit string) error
- func AddFileCert(keyFile, certFile string) error
- func AddTLSCert(cert tls.Certificate) error
- func GenX509Cert(subject pkix.Name, ipAddrs []net.IP) (cert, key *pem.Block, err error)
- func GetTLSConfig() *tls.Config
- func X509KeyPair(cert, key *pem.Block) (tls.Certificate, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddAutoCert ¶
func AddFileCert ¶
func AddTLSCert ¶
func AddTLSCert(cert tls.Certificate) error
func GenX509Cert ¶
subject := pkix.Name{ Organization: []string{"lib10"}, OrganizationalUnit: []string{"wsnode"}, CommonName: "auto-tls", }
func GetTLSConfig ¶
func X509KeyPair ¶
func X509KeyPair(cert, key *pem.Block) (tls.Certificate, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.