certs

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2026 License: Apache-2.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package certs implements certificate management

Index

Constants

View Source
const PKICACertificateHandlerAPIVersion = "v1"

PKICACertificateHandlerAPIVersion defines the version

Variables

This section is empty.

Functions

func NewCommand

func NewCommand() *cli.Command

NewCommand creates a new cli command

Types

type CertificateIssuer

type CertificateIssuer = types.CertificateIssuer

CertificateIssuer is an alias for types.CertificateIssuer for backward compatibility

type CertificateRequest

type CertificateRequest = types.CertificateRequest

CertificateRequest is an alias for types.CertificateRequest for backward compatibility

type CertificateResponse

type CertificateResponse = types.CertificateResponse

CertificateResponse is an alias for types.CertificateResponse for backward compatibility

type Error

type Error int

Error defines the error return codes

const (
	ErrorNone Error = iota

	ErrorParseRequest
	ErrorBadAPIVersion
	ErrorBadOwnerInfo
	ErrorVerifyCertificateRequest
	ErrorGetCertificate
	ErrorEncryptCertificatePrivateKey
	ErrorMarshalJSON

	ErrorRequestCACertificate
	ErrorDecodeCACertificate
	ErrorBadPKIRequest

	ErrorEventLogParse
	ErrorEventLogVerification
)

Error codes

func (Error) Code

func (e Error) Code() int

Code returns the error in int form

func (Error) Error

func (e Error) Error() string

Error returns a go error

func (Error) String

func (e Error) String() string

String returns the error in string form

type Options

type Options struct {
	Addr         string
	InsecureAddr string
	DNSName      string
	CABaseDNS    string
	// contains filtered or unexported fields
}

Options defines options for the server

type Server

type Server struct {
	Options
	// contains filtered or unexported fields
}

Server defines a server

func NewServerWithIssuer

func NewServerWithIssuer(ctx context.Context, o Options, certIssuer CertificateIssuer) (*Server, error)

NewServerWithIssuer returns a server instance with the provided certificate issuer.

func (*Server) PKICACertificateHandler

func (s *Server) PKICACertificateHandler(_ context.Context) http.Handler

PKICACertificateHandler returns pkiCACertificateHandler

func (*Server) PKICloudCertificateHandler

func (s *Server) PKICloudCertificateHandler(_ context.Context) http.Handler

PKICloudCertificateHandler returns pkiCloudCertificateHandler

func (*Server) Start

func (s *Server) Start(ctx context.Context)

Start starts the server

Jump to

Keyboard shortcuts

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