gsign

package
v0.0.0-...-6322619 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GSign

type GSign struct {
	// contains filtered or unexported fields
}

自签证书

func New

func New(params ...string) (*GSign, error)

参数顺序:Country、Province、Locality、Organization、OrganizationalUnit、CommonName

func (*GSign) AddDomain

func (t *GSign) AddDomain(domain string, reset ...bool)

添加域名

func (*GSign) AddIP

func (t *GSign) AddIP(ip string, reset ...bool)

添加地址

func (*GSign) Generate

func (t *GSign) Generate(duration ...int) (capem, cakey, sigpem, sigkey string, err error)

默认1年

Jump to

Keyboard shortcuts

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