scep

package
v0.0.0-...-f7962fa Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaddyDepot

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

func NewCaddyDepot

func NewCaddyDepot(h *Handler, ca *caddypki.CA) (*CaddyDepot, error)

func (*CaddyDepot) CA

func (cd *CaddyDepot) CA(pass []byte) ([]*x509.Certificate, *rsa.PrivateKey, error)

func (*CaddyDepot) HasCN

func (cd *CaddyDepot) HasCN(cn string, allowTime int, cert *x509.Certificate, revokeOldCertificate bool) (bool, error)

func (*CaddyDepot) Put

func (cd *CaddyDepot) Put(name string, crt *x509.Certificate) error

func (*CaddyDepot) Serial

func (cd *CaddyDepot) Serial() (*big.Int, error)

type Handler

type Handler struct {
	CA         string `json:"ca,omitempty"`
	Host       string `json:"host,omitempty"`
	PathPrefix string `json:"path_prefix,omitempty"`
	// contains filtered or unexported fields
}

Handler is a SCEP server handler

func (Handler) CaddyModule

func (Handler) CaddyModule() caddy.ModuleInfo

CaddyModule returns the Caddy module information.

func (Handler) Cleanup

func (h Handler) Cleanup() error

Cleanup implements caddy.CleanerUpper and closes any idle databases.

func (*Handler) Provision

func (h *Handler) Provision(ctx caddy.Context) error

Provision sets up the ACME server handler.

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, r *http.Request, next caddyhttp.Handler) error

Jump to

Keyboard shortcuts

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