Functions

Creates default certificate parameters.
Generates a X509 certificate pair and returns them in DER format. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/staking#NewCertAndKeyBytes
Generates a X509 certificate pair and writes them as PEM files. ref. https://pkg.go.dev/github.com/ava-labs/avalanchego/staking#NewCertAndKeyBytes
Loads the TLS key and certificate from the DER-encoded files.
Loads the existing staking certificates if exists, and returns the loaded or generated node Id. Returns “true” if generated.
Loads the TLS key and certificate from the PEM-encoded files.
Loads the PEM-encoded certificate as DER.
Loads the TLS key and certificate from the PEM-encoded files, as DER.