certmagic

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CertEvent func(evt string, data map[string]any)

Functions

func Manage

func Manage(rq *ReqeustParam) error

func Unmanage

func Unmanage(domain string)

Types

type Certificate

type Certificate struct {
	Names       []string
	NotAfter    int64
	NotBefore   int64
	Certificate [][]byte
	PrivateKey  []byte
	Issuer      map[string]any
}

func CertDetail

func CertDetail(domain string) (*Certificate, error)

type ReqeustParam

type ReqeustParam struct {
	Email       string `noste:"邮箱"`
	Domain      string `noste:"域名"`
	CaType      string `noste:"Ca 类型"`
	Provider    string `noste:"Ca 提供商"`
	SecretId    string `noste:"密钥 ID"`
	SecretKey   string `noste:"密钥"`
	EabKeyId    string `noste:"EAB密钥 ID"`
	EabMacKey   string `noste:"EAB密钥"`
	StoragePath string `noste:"存储目录"`
}

Jump to

Keyboard shortcuts

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