Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSelfSignedCert ¶
GenerateSelfSignedCert 自动为 localhost 及当前主机所有网卡 IP 生成自签名证书
func GetOrCreateTLSCertificate ¶
func GetOrCreateTLSCertificate(certPath, keyPath string) (tls.Certificate, error)
GetOrCreateTLSCertificate 加载已有证书或自动生成并持久化自签名证书
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.