certificates

package
v0.0.0-...-8d9bc6c Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(zeroSSLService ZeroSSLService) *Service

func (*Service) LoadCertificate

func (s *Service) LoadCertificate(filename string) (*x509.Certificate, error)

func (*Service) ObtainOrRenewCertificate

func (s *Service) ObtainOrRenewCertificate(ctx context.Context, domain, email, certFile, keyFile string) error

func (*Service) ShouldObtainCertificate

func (s *Service) ShouldObtainCertificate(action string, cert *x509.Certificate) bool

type ZeroSSLService

type ZeroSSLService interface {
	ObtainCertificate(ctx context.Context, domain, email string) (*acme.Client, [][]byte, crypto.PrivateKey, error)
}

Jump to

Keyboard shortcuts

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