generate

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GenerateCmd = &cobra.Command{
	Use:     "generate",
	Aliases: []string{"gen", "g"},
	Short:   "Generate secrets and bootstrap credentials for Arcane",
}

Functions

func BuildEdgeMTLSURISAN

func BuildEdgeMTLSURISAN(appURL string, envID string) *url.URL

BuildEdgeMTLSURISAN returns the SPIFFE URI SAN for an edge environment ID.

func EdgeMTLSTrustDomain

func EdgeMTLSTrustDomain(appURL string) string

EdgeMTLSTrustDomain returns the SPIFFE trust domain derived from an Arcane app URL.

func GenerateAPIKey

func GenerateAPIKey() (string, error)

func GenerateP384PrivateKey

func GenerateP384PrivateKey() (*ecdsa.PrivateKey, error)

GenerateP384PrivateKey generates an ECDSA P-384 private key.

func NewEdgeMTLSCATemplate

func NewEdgeMTLSCATemplate() (*x509.Certificate, error)

NewEdgeMTLSCATemplate builds Arcane's edge mTLS CA certificate template.

func NewEdgeMTLSClientTemplate

func NewEdgeMTLSClientTemplate(commonName string, uriSAN *url.URL, dnsSANs []string) (*x509.Certificate, error)

NewEdgeMTLSClientTemplate builds an edge-agent client certificate template.

func NewServerTLSTemplate

func NewServerTLSTemplate(commonName string, hosts []string) (*x509.Certificate, error)

NewServerTLSTemplate builds a self-signed Arcane HTTPS server certificate template.

Types

This section is empty.

Jump to

Keyboard shortcuts

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