package
0.25.0
Repository: https://github.com/gravitl/netmaker.git
Documentation: pkg.go.dev

# Functions

NewCName creates a new pkix.Name with only a common name.
NewCSR creates a new certificate signing request for a.
NewEndEntityCert issues a new certificate from a parent certificate authority.
NewKey generates a new key.
NewName creates a new pkix.Name with common name, country, and organization.
ReadCertFromFile reads a certificate from disk.
ReadFrom reads a private key from path.
ReadKeyFromFile reads a private key (ed25519) from disk.
SaveCertToFile save a certificate to the specified path.
SaveKeyToFile save a private key (ed25519) to the certs database.
SaveRequest saves a certificate request to the specified path.
SelfSignedCA returns a new self-signed certificate.

# Constants

CERTTIFICATE_VALIDITY duration of certificate validity in days.
ROOT_KEY_NAME - name of root cert private key.
ROOT_PEM_NAME - name of root pem.
SERVER_CLIENT_ENTRY
SERVER_CLIENT_ENTRY - the server client cert key for DB.
SERVER_CLIENT_KEY - the name of server client key.
SERVER_CLIENT_PEM - the name of server client cert.
SERVER_KEY_NAME - name of server cert private key.
SERVER_PEM_NAME - name of server pem.

# Structs

No description provided by the author