revoke

package
v0.0.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOCSPHandler

func NewOCSPHandler(dbAccessor certdb.Accessor, signer ocsp.Signer, config config.Config) http.Handler

Copy of cfssl NewOCSPHandler, but with upsert instead of insert of ocsp entries

Types

type Handler

type Handler struct {
	Signer ocsp.Signer
	// contains filtered or unexported fields
}

func (*Handler) Handle

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

Revoke godoc @Summary Revokes a certificate @Description Revokes a certificate @Accept json @Produce json @Param payload body JsonRevokeRequest true "Request payload" @Success 200 @Router /revoke [post]

type JsonRevokeRequest

type JsonRevokeRequest struct {
	Serial string `json:"serial"`
	AKI    string `json:"authority_key_id"`
	// See https://www.rfc-editor.org/rfc/rfc5280#section-5.3.1 Use written out code, e.g. "superseded".
	Reason string `json:"reason"`
}

type RevokeWebhookBody

type RevokeWebhookBody struct {
	Username string `json:"username"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL