cfssl: Index | Files

package ocsp

import ""

Package ocsp implements the HTTP handler for the ocsp commands.


Package Files


func NewHandler Uses

func NewHandler(s ocsp.Signer) http.Handler

NewHandler returns a new http.Handler that handles a ocspsign request.

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields

A Handler accepts requests with a certficate parameter (which should be PEM-encoded) and returns a signed ocsp response.

func (*Handler) Handle Uses

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

Handle responds to requests for a ocsp signature. It creates and signs a ocsp response for the provided certificate and status. If the status is revoked then it also adds reason and revoked_at. The response is base64 encoded.

Package ocsp imports 11 packages (graph) and is imported by 61 packages. Updated 2016-12-31. Refresh now. Tools for package owners.