Documentation
¶
Index ¶
- Variables
- func BuildEdgeMTLSURISAN(appURL string, envID string) *url.URL
- func EdgeMTLSTrustDomain(appURL string) string
- func GenerateAPIKey() (string, error)
- func GenerateP384PrivateKey() (*ecdsa.PrivateKey, error)
- func NewEdgeMTLSCATemplate() (*x509.Certificate, error)
- func NewEdgeMTLSClientTemplate(commonName string, uriSAN *url.URL, dnsSANs []string) (*x509.Certificate, error)
- func NewServerTLSTemplate(commonName string, hosts []string) (*x509.Certificate, error)
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 ¶ added in v1.19.0
BuildEdgeMTLSURISAN returns the SPIFFE URI SAN for an edge environment ID.
func EdgeMTLSTrustDomain ¶ added in v1.19.0
EdgeMTLSTrustDomain returns the SPIFFE trust domain derived from an Arcane app URL.
func GenerateAPIKey ¶ added in v1.17.0
func GenerateP384PrivateKey ¶ added in v1.19.0
func GenerateP384PrivateKey() (*ecdsa.PrivateKey, error)
GenerateP384PrivateKey generates an ECDSA P-384 private key.
func NewEdgeMTLSCATemplate ¶ added in v1.19.0
func NewEdgeMTLSCATemplate() (*x509.Certificate, error)
NewEdgeMTLSCATemplate builds Arcane's edge mTLS CA certificate template.
func NewEdgeMTLSClientTemplate ¶ added in v1.19.0
func NewEdgeMTLSClientTemplate(commonName string, uriSAN *url.URL, dnsSANs []string) (*x509.Certificate, error)
NewEdgeMTLSClientTemplate builds an edge-agent client certificate template.
func NewServerTLSTemplate ¶ added in v1.19.0
func NewServerTLSTemplate(commonName string, hosts []string) (*x509.Certificate, error)
NewServerTLSTemplate builds a self-signed Arcane HTTPS server certificate template.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.