helpers

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertFromChain

func CertFromChain(chain []byte) []byte

CertFromChain returns the first certificate from a bundled chain

func CertificateDetails

func CertificateDetails(acmClient acmiface.ACMAPI, domain, id, acmeSLSTagName string) (string, time.Duration, error)

CertificateDetails checks ACM for a certificate tagged with the ID

func ExpectIntMatch

func ExpectIntMatch(t *testing.T, exp, act int)

func ExpectStringMatch

func ExpectStringMatch(t *testing.T, exp, act string)

Types

type User

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

User represents a user of the CA server

func NewUser

func NewUser(email string) (*User, error)

func (*User) GetEmail

func (u *User) GetEmail() string

GetEmail implements registration.User

func (*User) GetPrivateKey

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

GetPrivateKey implements registration.User

func (*User) GetRegistration

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

GetRegistration implements regsitration.User

func (*User) SetRegistration

func (u *User) SetRegistration(r *registration.Resource)

SetRegistration setter for registration

Jump to

Keyboard shortcuts

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