certsource

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package certsource resolves keryx's TLS certificate source (spec 0027), shared by the studio HTTPS bind and the OAuth callback loopback. It keeps the go/localca dependency out of pkg/studio / pkg/oauth: those define the cert seam and a self-signed fallback, and this package resolves the configured source — defaulting to a trusted local-CA cert (go/localca) with the self-signed source as a fallback when the CA can't be provisioned (no elevation, no certutil).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Resolve

func Resolve(cfg config.Reader, appName string, log logger.Logger) studio.CertSource

Resolve picks the studio CertSource from config. "localca" (default) provisions a trusted per-machine cert, falling back to self-signed if it can't; "selfsigned" forces the self-signed source. An unknown value or no home dir degrades to self-signed — HTTPS is still served (0027 §5.4), so the Secure cookie holds.

Types

This section is empty.

Jump to

Keyboard shortcuts

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