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

package signhandler

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

Package signhandler provides the handlers for signers.

Index

Package Files

signhandler.go

Constants

const NoBundlerMessage = `This request requires a bundler, but one is not initialized for the API server.`

NoBundlerMessage is used to alert the user that the server does not have a bundler initialized.

func NewAuthHandlerFromSigner Uses

func NewAuthHandlerFromSigner(signer signer.Signer) (http.Handler, error)

NewAuthHandlerFromSigner creates a new AuthHandler from the signer that is passed in.

func NewHandlerFromSigner Uses

func NewHandlerFromSigner(signer signer.Signer) (h *api.HTTPHandler, err error)

NewHandlerFromSigner generates a new Handler directly from an existing signer.

type AuthHandler Uses

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

An AuthHandler verifies and signs incoming signature requests.

func (*AuthHandler) Handle Uses

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

Handle receives the incoming request, validates it, and processes it.

func (*AuthHandler) SetBundler Uses

func (h *AuthHandler) SetBundler(caBundleFile, intBundleFile string) (err error)

SetBundler allows injecting an optional Bundler into the Handler.

type Handler Uses

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

A Handler accepts requests with a hostname and certficate parameter (which should be PEM-encoded) and returns a new signed certificate. It includes upstream servers indexed by their profile name.

func (*Handler) Handle Uses

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

Handle responds to requests for the CA to sign the certificate request present in the "certificate_request" parameter for the host named in the "hostname" parameter. The certificate should be PEM-encoded. If provided, subject information from the "subject" parameter will be used in place of the subject information from the CSR.

func (*Handler) SetBundler Uses

func (h *Handler) SetBundler(caBundleFile, intBundleFile string) (err error)

SetBundler allows injecting an optional Bundler into the Handler.

Package signhandler imports 10 packages (graph) and is imported by 101 packages. Updated 2019-07-09. Refresh now. Tools for package owners.