certs

package
v0.1.51 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CertExists

func CertExists(domain string) bool

CertExists returns true if the certificate for the domain already exists.

func InstallCA

func InstallCA() error

InstallCA installs the mkcert root CA into the system trust store.

func IssueCert

func IssueCert(domain, certsDir string) error

IssueCert issues a TLS certificate for the given domain using mkcert.

func MkcertPath

func MkcertPath() string

MkcertPath returns the path to the mkcert binary.

func SecureSite added in v0.1.29

func SecureSite(site config.Site) error

SecureSite issues a TLS certificate for the site and switches its nginx vhost to HTTPS.

func UnsecureSite added in v0.1.29

func UnsecureSite(site config.Site) error

UnsecureSite regenerates a plain HTTP vhost for the site, removing TLS.

Types

This section is empty.

Jump to

Keyboard shortcuts

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