certgen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	// contains filtered or unexported fields
}

Generator handles TLS certificate generation

func NewGenerator

func NewGenerator(certsDir, baseDomain string) *Generator

NewGenerator creates a new certificate generator

func (*Generator) CACrtPath

func (g *Generator) CACrtPath() string

CACrtPath returns the path to Windows-compatible CA certificate (DER format)

func (*Generator) CertPaths

func (g *Generator) CertPaths() (caCert, caKey, serverCert, serverKey string)

CertPaths returns the paths to certificate files

func (*Generator) EnsureCerts

func (g *Generator) EnsureCerts() error

EnsureCerts generates certificates if they don't exist If server cert/key already exist (e.g., from mkcert), they are used as-is

Jump to

Keyboard shortcuts

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