spaceca

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package spaceca provides helpers for setting up TLS from a CA configuration.

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