tlsutil

package
v0.411.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package tlsutil generates and manages TLS certificates for Pando's HTTP server. It creates a self-signed certificate stored in the user's data directory so that the PWA installation prompt is available when accessing Pando remotely.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertPaths

type CertPaths struct {
	CertFile string
	KeyFile  string
}

CertPaths holds the file paths for the TLS certificate and private key.

func EnsureCert

func EnsureCert(dataDir string) (CertPaths, error)

EnsureCert returns paths to a TLS cert/key pair inside dataDir. If the files already exist they are reused; otherwise a new self-signed ECDSA P-256 certificate is generated and persisted.

Jump to

Keyboard shortcuts

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