cert

package
v3.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeCert

func EncodeCert(cert x509.Certificate) ([]byte, error)

func EncodeKey

func EncodeKey(key crypto.Signer) ([]byte, error)

func GenerateSelfSigned

func GenerateSelfSigned(names []string) (cert []byte, key []byte, err error)

GenerateSelfSigned 生成自签名证书

func GenerateSelfSignedRSA

func GenerateSelfSignedRSA(hosts []string) (certPEM []byte, keyPEM []byte, err error)

GenerateSelfSignedRSA 生成 RSA-3072 自签名证书

func ParseCert

func ParseCert(crt []byte) (x509.Certificate, error)

func ParseKey

func ParseKey(key []byte) (crypto.Signer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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