ejbca

package
v1.132.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const CAName = "ejbCA"

Variables

This section is empty.

Functions

This section is empty.

Types

type EJBCA

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

func New

func New(serverURL, keyPath, certPath, rootCAPath, certProfileName, endEntityProfileName, caName string) (*EJBCA, error)

func (EJBCA) CreateCertificateFromCSR

func (e EJBCA) CreateCertificateFromCSR(ctx context.Context, principal identity.Principal, csr *x509.CertificateRequest) (*fulcioca.CodeSigningCertificate, error)

func (EJBCA) GetName added in v1.0.0

func (e EJBCA) GetName() string

func (EJBCA) GetRootChain added in v0.162.0

func (e EJBCA) GetRootChain(_ context.Context) ([]*x509.Certificate, error)

type EnrollStatusError added in v1.132.0

type EnrollStatusError struct {
	// Status is the HTTP status line, for example "403 Forbidden".
	Status string
	// StatusCode is the HTTP status code.
	StatusCode int
}

EnrollStatusError is returned when EJBCA answers a certificate enrollment with an unexpected HTTP status. It is a separate type so that error trackers do not group it with transport or decoding failures.

func (*EnrollStatusError) Error added in v1.132.0

func (e *EnrollStatusError) Error() string

Jump to

Keyboard shortcuts

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