pki

package
v1.65.0 Latest Latest
Warning

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

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

Documentation

Overview

Package pki provides functions for managing a public key infrastructure (PKI), including certificate authority (CA) operations, certificate issuance, and revocation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoCert

func AutoCert(url, email, sans, dsPath string, insecure bool) error

func CreateCA

func CreateCA(req *datastore.CreateCAReq) error

func CreateCertificate

func CreateCertificate(csr []byte) ([]byte, error)

CreateCertificate manually issues a certificate from a given CSR.

func CreateCertificateRequest

func CreateCertificateRequest(req *CSRReqEnt) ([]byte, error)

func DestroyCA

func DestroyCA()

func GetAcmeServerStatus

func GetAcmeServerStatus() string

func GetHTTPServerStatus added in v1.56.0

func GetHTTPServerStatus() string

func IsCAValid

func IsCAValid() bool

func Start

func Start(ctx context.Context, wg *sync.WaitGroup) error

Types

type AutoCertUser

type AutoCertUser struct {
	Email        string
	Registration *registration.Resource
	// contains filtered or unexported fields
}

func (*AutoCertUser) GetEmail

func (u *AutoCertUser) GetEmail() string

func (*AutoCertUser) GetPrivateKey

func (u *AutoCertUser) GetPrivateKey() crypto.PrivateKey

func (AutoCertUser) GetRegistration

func (u AutoCertUser) GetRegistration() *registration.Resource

type CSRReqEnt

type CSRReqEnt struct {
	KeyType            string `json:"KeyType"`
	CommonName         string `json:"CommonName"`
	OrganizationalUnit string `json:"OrganizationalUnit"`
	Organization       string `json:"Organization"`
	Locality           string `json:"Locality"`
	Province           string `json:"Province"`
	Country            string `json:"Country"`
	Sans               string `json:"Sans"`
}

Jump to

Keyboard shortcuts

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