certs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertExists

func CertExists() (bool, bool, bool)

func ChangeToDefault

func ChangeToDefault(https, wss bool)

func GetACMEFileNames

func GetACMEFileNames(domainName string, dirName string) (string, string, string, string)

func NewCertManager

func NewCertManager() (*certManager, error)

func PrepareCerts

func PrepareCerts() (chan struct{}, chan struct{})

func VerifyCertificate

func VerifyCertificate(certPath, keyPath, domain string) (bool, error)

func VerifyLocalCertificate

func VerifyLocalCertificate(certPath string, keyPath string, domain string) (bool, error)

func VerifyOCSP

func VerifyOCSP(bundle []byte) (bool, error)

Types

type User

type User struct {
	Domain       string
	Email        string
	Registration *registration.Resource
	Key          *rsa.PrivateKey
}

You'll need a User or account type that implements acme.User

func GetUser

func GetUser() (*User, error)

func (*User) GetEmail

func (u *User) GetEmail() string

func (*User) GetPrivateKey

func (u *User) GetPrivateKey() crypto.PrivateKey

func (User) GetRegistration

func (u User) GetRegistration() *registration.Resource

func (*User) SaveToDisk

func (u *User) SaveToDisk() error

Jump to

Keyboard shortcuts

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