Documentation
¶
Overview ¶
Package certpath provides the filesystem boundary for persisted certificates. User-provided certificate identifiers are never used as path components.
Index ¶
- func Normalize(raw string, allowWildcard bool) (string, error)
- func NormalizeAll(raw []string, allowWildcard bool) ([]string, error)
- func ReadACMEIndex(cacheDir string) ([]byte, error)
- func ReadMetadata(cacheDir string) ([]byte, error)
- func ReadPair(cacheDir string, namespace Namespace, domain string) ([]byte, []byte, error)
- func RemovePair(cacheDir string, namespace Namespace, domain string) error
- func WriteACMEIndex(cacheDir string, data []byte) error
- func WriteMetadata(cacheDir string, data []byte) error
- func WritePair(cacheDir string, namespace Namespace, domain string, certPEM, keyPEM []byte) error
- type Namespace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Normalize ¶
Normalize canonicalizes and validates a DNS certificate identifier. IP address certificates are accepted, and a wildcard is allowed only as the complete left-most label when allowWildcard is true. Internationalized names must be supplied in their ASCII A-label form.
func NormalizeAll ¶
NormalizeAll validates, canonicalizes, and de-duplicates domains while preserving their first-seen order.
func ReadACMEIndex ¶
ReadACMEIndex reads the fixed ACME domain index used for eager cache loads.
func ReadMetadata ¶
ReadMetadata reads the fixed certificate metadata document.
func ReadPair ¶
ReadPair securely reads a certificate and private key. If only the legacy domain-named pair exists, it is migrated before being returned.
func RemovePair ¶
RemovePair removes a persisted certificate pair without following symlinks.
func WriteACMEIndex ¶
WriteACMEIndex atomically replaces the fixed ACME domain index.
func WriteMetadata ¶
WriteMetadata atomically replaces the fixed certificate metadata document.