revoke

package
v0.0.0-...-7d88da8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: BSD-2-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package revoke implements the HTTP handler for the revoke command

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(dbAccessor certdb.Accessor) http.Handler

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

func NewOCSPHandler

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

NewOCSPHandler returns a new http.Handler that handles a revoke request and also generates an OCSP response

Types

type Handler

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

A Handler accepts requests with a serial number parameter and revokes

func (*Handler) Handle

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

Handle responds to revocation requests. It attempts to revoke a certificate with a given serial number

Jump to

Keyboard shortcuts

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