pki

package
v0.68.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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.

Jump to

Keyboard shortcuts

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