certificates

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateManager

type CertificateManager struct {
	CertStorage *Storage
	// contains filtered or unexported fields
}

CertificateManager manages certificates: issue, renew, ....

func GetCertificateManager

func GetCertificateManager() (*CertificateManager, error)

GetCertificateManager creates CertificateManager instance

func (*CertificateManager) Assign added in v0.3.0

Assign assign certificate from the storage to a domain

func (*CertificateManager) GetStorageCertData added in v0.3.0

func (c *CertificateManager) GetStorageCertData(certName string) (*agentintegration.Certificate, error)

GetStorageCertData returns certificate by name

func (*CertificateManager) GetStorageCertList added in v0.3.0

func (c *CertificateManager) GetStorageCertList() ([]string, error)

GetStorageCertList returns names of all certificates in the storage

func (*CertificateManager) Issue

Issue issues a certificate

func (*CertificateManager) RemoveCertificate added in v0.3.0

func (c *CertificateManager) RemoveCertificate(certName string) error

GetStorageCertData returns certificate by name

func (*CertificateManager) Upload added in v0.1.2

func (c *CertificateManager) Upload(certName, webServer, pemData string) (*agentintegration.Certificate, error)

Upload deploys an existed certificate

type ChallengeType

type ChallengeType interface {
	GetParams() []string
}

ChallengeType should be implemented by object to specify challenge type during certificate issuence

type DNSChallengeType

type DNSChallengeType struct {
	Provider string
}

DNSChallengeType implements http challenge type

func (*DNSChallengeType) GetParams

func (ct *DNSChallengeType) GetParams() []string

GetParams retuns the list of parameters for dns challenge type

type HTTPChallengeType

type HTTPChallengeType struct {
	HTTPPort,
	TLSPort int
	WebRoot string
}

HTTPChallengeType implements http challenge type

func (*HTTPChallengeType) GetParams

func (ct *HTTPChallengeType) GetParams() []string

GetParams retuns the list of parameters for http challenge type

type Handler

type Handler struct{}

Handler handles requests to the module

func (*Handler) Handle

func (h *Handler) Handle(request router.Request) (interface{}, error)

Handle handles request to the module

type Storage added in v0.3.0

type Storage struct {
	Path string
}

func GetDefaultCertStorage added in v0.3.0

func GetDefaultCertStorage() *Storage

func (*Storage) AddPemCertificate added in v0.3.0

func (s *Storage) AddPemCertificate(certName, pemData string) (string, error)

AddCertificate add .pem certificate to the storage

func (*Storage) GetCertificate added in v0.3.0

func (s *Storage) GetCertificate(certName string) (*agentintegration.Certificate, error)

GetStorageCertData returns certificate by name

func (*Storage) GetCertificateAsString added in v0.3.0

func (s *Storage) GetCertificateAsString(certName string) (string, string, error)

GetCertificateAsString returns certificate file path and content

func (*Storage) GetCertificateNameList added in v0.3.0

func (s *Storage) GetCertificateNameList() ([]string, error)

GetStorageCertList returns names of all certificates in the storage

func (*Storage) GetCertificatePath added in v0.3.0

func (s *Storage) GetCertificatePath(certName string) (string, error)

func (*Storage) GetCertificatesDirPath added in v0.3.0

func (s *Storage) GetCertificatesDirPath() string

getCertificatesDirPath returns path to directory where certificates are stored

func (*Storage) GetVhostCertificateKeyPath added in v0.3.0

func (s *Storage) GetVhostCertificateKeyPath(certName string) string

func (*Storage) GetVhostCertificatePath added in v0.3.0

func (s *Storage) GetVhostCertificatePath(certName, extension string) string

func (*Storage) RemoveCertificate added in v0.3.0

func (s *Storage) RemoveCertificate(certName string) error

RemoveCertificate remove certificate from the storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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