Documentation ¶
Overview ¶
Package info implements the HTTP handler for the info command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
NewHandler creates a new handler to serve information on the CA's certificates, taking a signer to use.
Types ¶
type Handler ¶
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.
type MultiHandler ¶
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 ¶
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.