package info
import "github.com/cloudflare/cfssl/api/info"
Package info implements the HTTP handler for the info command.
Index ¶
- func NewHandler(s signer.Signer) (http.Handler, error)
- func NewMultiHandler(signers map[string]signer.Signer, defaultLabel string) (http.Handler, error)
- type Handler
- type MultiHandler
Functions ¶
func NewHandler ¶
NewHandler creates a new handler to serve information on the CA's certificates, taking a signer to use.
func NewMultiHandler ¶
NewMultiHandler constructs a MultiHandler from a mapping of labels to signers and the default label.
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.
func (*Handler) Handle ¶
Handle listens for incoming requests for CA information, and returns a list containing information on each root certificate.
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.
Source Files ¶
- Version
- v1.6.5 (latest)
- Published
- Mar 5, 2024
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 6 days ago –
Tools for package owners.