pki

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package pki generates the self-signed CA, server and client certificates used for mutual TLS between awg-admin and an agent listening on a public ("white") IP. Certificates are generated locally by awg-admin and stored in its own database (models.AgentTLS); the server certificate and CA are deployed to the agent alongside its binary, the client certificate is kept by awg-admin to authenticate itself when dialing the agent directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IssueAgentTLS

func IssueAgentTLS(commonName string, ips []net.IP, dnsNames []string) (*models.AgentTLS, error)

IssueAgentTLS generates a fresh CA plus a server certificate (valid for host, covering the given IPs/DNS names so it matches whatever "white" IP or hostname the agent will be reached on) and a client certificate that awg-admin will present to the agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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