acme

package
v0.0.0-...-ec430c0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Request

type Request struct {
	Domains            []string
	ACMEAddress        string
	InsecureSkipVerify bool
	Email              string

	AccountSinger crypto.Signer
	CertSinger    crypto.Signer

	DoNewAccount bool
	DoMakeCert   bool

	// reseults
	ResultContentType string
	ResultContentData []byte
}

Request 。。。

func (*Request) ForProduction

func (inst *Request) ForProduction() *Request

ForProduction ...

func (*Request) ForTest

func (inst *Request) ForTest() *Request

ForTest ...

func (*Request) Run

func (inst *Request) Run() error

Run ...

type RequestV2

type RequestV2 struct {
	ServiceURL   string
	DoNewAccount bool
	DoMakeCert   bool
	DoSkipVerify bool

	UserEmail  string
	UserSigner crypto.Signer

	DomainName   string
	DomainSigner crypto.Signer
}

RequestV2 ...

func (*RequestV2) PrepareForProduction

func (inst *RequestV2) PrepareForProduction() *RequestV2

PrepareForProduction ...

func (*RequestV2) PrepareForTest

func (inst *RequestV2) PrepareForTest() *RequestV2

PrepareForTest ...

func (*RequestV2) Send

func (inst *RequestV2) Send() (*ResponseV2, error)

Send ...

type ResponseV2

type ResponseV2 struct {
	acme.Certificate
}

ResponseV2 ...

func (*ResponseV2) ToX509

func (inst *ResponseV2) ToX509() ([]*x509.Certificate, error)

ToX509 ...

Jump to

Keyboard shortcuts

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