Documentation ¶
Index ¶
- Constants
- Variables
- func ReadCertFromDB(name string) (*x509.Certificate, error)
- func ReadKeyFromDB(name string) (*ed25519.PrivateKey, error)
- func SaveCert(path, name string, cert *x509.Certificate) error
- func SaveCertToDB(name string, cert *x509.Certificate) error
- func SaveKey(path, name string, key ed25519.PrivateKey) error
- func SaveKeyToDB(name string, key ed25519.PrivateKey) error
- func SetClientTLSConf(serverClientPemPath, serverClientKeyPath string, ca *x509.Certificate) error
- func SetDefaults() error
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.
Click to show internal directories.
Click to hide internal directories.