certmanager

package
v0.0.0-...-10a7ee0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeployCerts

func DeployCerts(options CMOptions, crt certs.LECerts) error

func GetSSHClient

func GetSSHClient(options CMOptions) (*ssh.Client, error)

func IsExpiring

func IsExpiring(crt *x509.Certificate, currentTime time.Time) bool

func RunSSHCommand

func RunSSHCommand(client *ssh.Client, cmd string) error

func ValidateExpiration

func ValidateExpiration(crt certs.LECerts) (bool, error)

Types

type CMOptions

type CMOptions struct {
	Email       string
	Domain      string
	SSLPort     string
	SSHUser     string
	SSHPort     string
	SSHPassword string
}

type CertManager

type CertManager struct {
	DS datastore.DataStore
}

func (*CertManager) GetUser

func (c *CertManager) GetUser(email string) (*user.LEUser, error)

func (*CertManager) HostCertIsValid

func (c *CertManager) HostCertIsValid(domain string, port string) bool

func (*CertManager) RenewCertificate

func (c *CertManager) RenewCertificate(domain string, email string) (certs.LECerts, error)

func (*CertManager) ValidateAndRenew

func (c *CertManager) ValidateAndRenew(options CMOptions) error

Jump to

Keyboard shortcuts

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