Manager

package
v0.0.0-...-e4664ba Latest Latest
Warning

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

Go to latest
Published: May 3, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KeyAuthorizationToken

type KeyAuthorizationToken struct {
	Token              string `gorm:"primaryKey"`
	AuthorizationToken string
}

GORM Models

type Manager

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

func (Manager) FetchIssuerName

func (s Manager) FetchIssuerName() string

func (*Manager) Init

func (s *Manager) Init(ctx context.Context, db gorm.DB, options ManagerOptions) error

Init Manager

func (Manager) InitHttpHandlers

func (s Manager) InitHttpHandlers(e *echo.Echo)

Init http handlers

func (Manager) ObtainCertificate

func (s Manager) ObtainCertificate(domain string, privateKeyStr string) (string, error)

This will initiate ACME server to reverse verification and store generated certificate in preferred location - return fullchain of the certificate, error

func (Manager) VerifyDomain

func (s Manager) VerifyDomain(domain string) bool

VerifyDomain Verify whether the domain is pointing to the server Run this before requesting certificate from ACME

type ManagerOptions

type ManagerOptions struct {
	IsStaging         bool
	Email             string
	AccountPrivateKey string
}

Jump to

Keyboard shortcuts

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