certleaf

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

func NewAPI

func NewAPI() *API

func (*API) CertChain

func (a *API) CertChain(c *helper.HTTPWrapContext) (interface{}, error)

CertChain Certificate chain @Tags certleaf @Summary (p1)CertChain @Description Get certificate chain information @Produce json @Param self_cert query bool false "Show CA's own certificate chain" @Param sn query string false "SN+AKI Query the specified certificate" @Param aki query string false "SN+AKI Query the specified certificate" @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=logic.LeafCert} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /certleaf/cert_chain [get]

func (*API) CertChainFromRoot

func (a *API) CertChainFromRoot(c *helper.HTTPWrapContext) (interface{}, error)

CertChainFromRoot All certificate chains from the root Perspective @Tags certleaf @Summary (p1)Root view certificate chain @Description All certificate chains from the root Perspective @Produce json @Success 200 {object} helper.MSPNormalizeHTTPResponseBody{data=RootCertChains} " " @Failure 400 {object} helper.HTTPWrapErrorResponse @Failure 500 {object} helper.HTTPWrapErrorResponse @Router /certleaf/cert_chain_from_root [get]

type RootCertChains

type RootCertChains struct {
	Root *caLogic.IntermediateObject `json:"root"`
}

Jump to

Keyboard shortcuts

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