pki

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2026 License: Apache-2.0 Imports: 36 Imported by: 0

Documentation

Overview

Package pki provides functionality 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 CreateCA

func CreateCA(req datastore.CreateCAReq) error

func CreateCertificate

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

CreateCertificate manually issues a certificate from a CSR.

func CreateCertificateRequest

func CreateCertificateRequest(req *CSRReqEnt, file string) error

func DestroyCA

func DestroyCA()

func GetAcmeServerStatus

func GetAcmeServerStatus() string

func GetHTTPServerStatus added in v1.23.0

func GetHTTPServerStatus() string

func IsCAValid

func IsCAValid() bool

func Start

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

Types

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