Documentation
¶
Overview ¶
Package pki provides a simple way to generate a CA and signed server keypair.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckForExpiredCert ¶ added in v0.52.0
func CheckForExpiredCert(ctx context.Context, pk GeneratedPKI) error
CheckForExpiredCert checks if the certificate is expired
Types ¶
type GeneratedPKI ¶ added in v0.52.0
type GeneratedPKI struct {
CA []byte `json:"ca"`
Cert []byte `json:"cert"`
Key []byte `json:"key"`
}
GeneratedPKI is a struct for storing generated PKI data.
func GeneratePKI ¶
func GeneratePKI(host string, dnsNames ...string) (GeneratedPKI, error)
GeneratePKI create a CA and signed server keypair.
Click to show internal directories.
Click to hide internal directories.