Functions

Creates default certificate parameters. RSA for Apple M1. ref. https://github.com/sfackler/rust-native-tls/issues/225

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 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.