[][src]Module casper_node::tls

Transport layer security and signing based on OpenSSL.

This module wraps some of the lower-level TLS constructs to provide a reasonably safe-to-use API surface for the rest of the application. It also fixes the security parameters of the TLS level in a central place.

Features include

Structs

KeyFingerprint

Public key fingerprint.

Signed

A signed value.

TlsCert

TLS certificate.

Enums

ValidationError

Error during certificate validation.

Functions

generate_node_cert

Generates a self-signed (key, certificate) pair suitable for TLS and signing.

save_cert

Saves a certificate to a file.

save_private_key

Saves a private key to a file.