service

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(FQDN string, dir string, port uint16, signers []Signer) (http.Handler, error)

Types

type ACME

type ACME struct {
	ProvisionerName ProvisionerName
}

ACME is the acme provisioner type, an entity that can authorize the ACME provisioning flow.

func (ACME) AuthorizeRenewal

func (ACME) AuthorizeRenewal(cert *x509.Certificate) error

AuthorizeRenewal is not implemented for the ACME provisioner.

func (ACME) AuthorizeRevoke

func (ACME) AuthorizeRevoke(token string) error

AuthorizeRevoke is not implemented yet for the ACME provisioner.

func (ACME) AuthorizeSign

func (a ACME) AuthorizeSign(ctx context.Context, token string) ([]provisioner.SignOption, error)

AuthorizeSign validates the given token.

func (ACME) GetEncryptedKey

func (p ACME) GetEncryptedKey() (string, string, bool)

GetEncryptedKey returns the base provisioner encrypted key if it's defined.

func (ACME) GetID

func (p ACME) GetID() string

GetID returns the provisioner unique identifier.

func (ACME) GetName

func (p ACME) GetName() string

GetName returns the name of the provisioner.

func (ACME) GetTokenID

func (p ACME) GetTokenID(ott string) (string, error)

GetTokenID returns the identifier of the token.

func (ACME) GetType

func (p ACME) GetType() provisioner.Type

GetType returns the type of provisioner.

func (ACME) Init

func (ACME) Init(config provisioner.Config) error

Init initializes and validates the fields of a JWK type.

type ProvisionerName

type ProvisionerName string

ProvisionerName provides name of provision

type Signer

type Signer = interface {
	Sign(ctx context.Context, csr []byte) (certChain []byte, err error)
	ID() string
}

Jump to

Keyboard shortcuts

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