serverctl

package
v0.24.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// NETMAKER_BINARY_NAME - name of netmaker binary
	NETMAKER_BINARY_NAME = "netmaker"
)

Variables

View Source
var TlsConfig ssl.Config

TlsConfig - holds this servers TLS conf in memory

Functions

func ReadCertFromDB

func ReadCertFromDB(name string) (*x509.Certificate, error)

ReadCertFromDB - reads a certificate from the database

func ReadKeyFromDB

func ReadKeyFromDB(name string) (*ed25519.PrivateKey, error)

ReadKeyFromDB - reads a private key (ed25519) from the database

func SaveCert

func SaveCert(path, name string, cert *x509.Certificate) error

SaveCert - save a certificate to file and DB

func SaveCertToDB

func SaveCertToDB(name string, cert *x509.Certificate) error

SaveCertToDB - save a certificate to the certs database

func SaveKey

func SaveKey(path, name string, key ed25519.PrivateKey) error

SaveKey - save a private key (ed25519) to file and DB

func SaveKeyToDB

func SaveKeyToDB(name string, key ed25519.PrivateKey) error

SaveKeyToDB - save a private key (ed25519) to the specified path

func SetClientTLSConf

func SetClientTLSConf(serverClientPemPath, serverClientKeyPath string, ca *x509.Certificate) error

SetClientTLSConf - saves client cert for servers to connect to MQ broker with

func SetDefaults

func SetDefaults() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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