cert

package
v1.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 16, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateSelfSignedCert

func GenerateSelfSignedCert() ([]byte, []byte, error)

GenerateSelfSignedCert 自动为 localhost 及当前主机所有网卡 IP 生成自签名证书

func GetOrCreateTLSCertificate

func GetOrCreateTLSCertificate(certPath, keyPath string) (tls.Certificate, error)

GetOrCreateTLSCertificate 加载已有证书或自动生成并持久化自签名证书

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL