Documentation
¶
Overview ¶
Package pki provides functionality for managing a public key infrastructure (PKI), including certificate authority (CA) operations, certificate issuance, and revocation.
Index ¶
- func CreateCA(req datastore.CreateCAReq) error
- func CreateCertificate(csr []byte, file string) error
- func CreateCertificateRequest(req *CSRReqEnt, file string) error
- func DestroyCA()
- func GetAcmeServerStatus() string
- func GetHTTPServerStatus() string
- func IsCAValid() bool
- func Start(ctx context.Context, wg *sync.WaitGroup) error
- type CSRReqEnt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCA ¶
func CreateCA(req datastore.CreateCAReq) error
func CreateCertificate ¶
CreateCertificate manually issues a certificate from a CSR.
func GetAcmeServerStatus ¶
func GetAcmeServerStatus() string
func GetHTTPServerStatus ¶ added in v1.23.0
func GetHTTPServerStatus() string
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"`
}
Click to show internal directories.
Click to hide internal directories.