acme

package
v1.102.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: BSD-3-Clause Imports: 53 Imported by: 0

Documentation

Overview

Package acme registers the ACME/TLS-cert feature and implements its associated ipnext.Extension. The extension owns the per-LocalBackend ACME serialization mutex, in-flight cert tracking, the refresh loop's cancel func, and the test-only cert override; together with the cert acquisition logic in this package, it is everything tailscaled needs to obtain and renew TLS certificates via ACME.

In builds without ACME support (js or ts_omit_acme), this package is not linked in; ipn/ipnlocal then exposes only stub wrappers that return errNoCerts or no-op.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TLSCertKeyReader

type TLSCertKeyReader interface {
	ReadTLSCertAndKey(domain string) ([]byte, []byte, error)
}

TLSCertKeyReader is an interface implemented by state stores where it makes sense to read the TLS cert and key in a single operation that can be distinguished from generic state value reads. Currently this is only implemented by the kubestore.Store, which, in some cases, needs to read cert and key from a non-cached TLS Secret.

type TLSCertKeyWriter

type TLSCertKeyWriter interface {
	WriteTLSCertAndKey(domain string, cert, key []byte) error
}

TLSCertKeyWriter is an interface implemented by state stores that can write the TLS cert and key in a single atomic operation. Currently this is only implemented by the kubestore.StoreKube.

Jump to

Keyboard shortcuts

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