Documentation ¶
Index ¶
- func New(scepAuth scep.Interface) api.RouterHandler
- type Handler
- func (h *Handler) Get(w http.ResponseWriter, r *http.Request)
- func (h *Handler) GetCACaps(ctx context.Context) (SCEPResponse, error)
- func (h *Handler) GetCACert(ctx context.Context) (SCEPResponse, error)
- func (h *Handler) PKIOperation(ctx context.Context, request SCEPRequest) (SCEPResponse, error)
- func (h *Handler) Post(w http.ResponseWriter, r *http.Request)
- func (h *Handler) Route(r api.Router)
- type SCEPRequest
- type SCEPResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
Handler is the SCEP request handler.
func (*Handler) Get ¶
func (h *Handler) Get(w http.ResponseWriter, r *http.Request)
Get handles all SCEP GET requests
func (*Handler) GetCACaps ¶
func (h *Handler) GetCACaps(ctx context.Context) (SCEPResponse, error)
GetCACaps returns the CA capabilities in a SCEP response
func (*Handler) GetCACert ¶
func (h *Handler) GetCACert(ctx context.Context) (SCEPResponse, error)
GetCACert returns the CA certificates in a SCEP response
func (*Handler) PKIOperation ¶
func (h *Handler) PKIOperation(ctx context.Context, request SCEPRequest) (SCEPResponse, error)
PKIOperation performs PKI operations and returns a SCEP response
type SCEPRequest ¶
SCEPRequest is a SCEP server request.
type SCEPResponse ¶
type SCEPResponse struct { Operation string CACertNum int Data []byte Certificate *x509.Certificate Error error }
SCEPResponse is a SCEP server response.
Click to show internal directories.
Click to hide internal directories.