package ocsp
import "github.com/cloudflare/cfssl/api/ocsp"
Package ocsp implements the HTTP handler for the ocsp commands.
Index ¶
Functions ¶
func NewHandler ¶
NewHandler returns a new http.Handler that handles a ocspsign request.
Types ¶
type Handler ¶
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 ¶
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.
Source Files ¶
- Version
- v1.6.5 (latest)
- Published
- Mar 5, 2024
- Platform
- linux/amd64
- Imports
- 11 packages
- Last checked
- 6 days ago –
Tools for package owners.