certs

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

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