certinfo

package
v1.4.2-0...-364ecd5 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package certinfo implements the HTTP handler for the certinfo command.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAccessorHandler

func NewAccessorHandler(dbAccessor certdb.Accessor) http.Handler

NewAccessorHandler creates a new bundler with database access via the certdb.Accessor interface. If this handler is constructed it will be possible to lookup certificates issued earlier by the CA.

func NewHandler

func NewHandler() http.Handler

NewHandler creates a new bundler that uses the root bundle and intermediate bundle in the trust chain.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler accepts requests for either remote or uploaded certificates to be bundled, and returns a certificate bundle (or error).

func (*Handler) Handle

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

Handle implements an http.Handler interface for the bundle handler.

Jump to

Keyboard shortcuts

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