cfssl: github.com/cloudflare/cfssl/api/info Index | Files

package info

import "github.com/cloudflare/cfssl/api/info"

Package info implements the HTTP handler for the info command.

Index

Package Files

info.go

func NewHandler Uses

func NewHandler(s signer.Signer) (http.Handler, error)

NewHandler creates a new handler to serve information on the CA's certificates, taking a signer to use.

func NewMultiHandler Uses

func NewMultiHandler(signers map[string]signer.Signer, defaultLabel string) (http.Handler, error)

NewMultiHandler constructs a MultiHandler from a mapping of labels to signers and the default label.

type Handler Uses

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

Handler is a type that contains the root certificates for the CA, and serves information on them for clients that need the certificates.

func (*Handler) Handle Uses

func (h *Handler) Handle(w http.ResponseWriter, r *http.Request) error

Handle listens for incoming requests for CA information, and returns a list containing information on each root certificate.

type MultiHandler Uses

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

MultiHandler is a handler for providing the public certificates for a multi-root certificate authority. It takes a mapping of label to signer and a default label, and handles the standard information request as defined in the client package.

func (*MultiHandler) Handle Uses

func (h *MultiHandler) Handle(w http.ResponseWriter, r *http.Request) error

Handle accepts client information requests, and uses the label to look up the signer whose public certificate should be retrieved. If the label is empty, the default label is used.

Package info imports 8 packages (graph) and is imported by 74 packages. Updated 2016-12-24. Refresh now. Tools for package owners.