Help us shape the future of Go! Take the 2026 Go Developer Survey

spaceca

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2019 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCACertificate

func NewCACertificate(domain string, spaceCA CA) (*tls.Certificate, error)

NewCACertificate returns a certificate signed by the space's CA.

func NewServerTLSConfig

func NewServerTLSConfig(domain string, secData map[string][]byte) (*tls.Config, error)

NewServerTLSConfig returns a TLS configuration for servers running in a space. The configuration includes a certificate valid for the provided domain and signed by the space's CA.

Types

type CA

type CA struct {
	RootCert []byte
	Cert     []byte
	Key      []byte
}

CA contains information regarding the root CA and intermediary space CA which is used to generate a certificate for a service.

Jump to

Keyboard shortcuts

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