iroh_net::tls

Module certificate

Source
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Expand description

X.509 certificate handling.

This module handles generation, signing, and verification of certificates.

Based on rust-libp2p/transports/tls/src/certificate.rs originally licensed under MIT by Parity Technologies (UK) Ltd.

Structs§

GenErrorDeprecated
An error that occurs during certificate generation.
P2pCertificateDeprecated
An X.509 certificate with a libp2p-specific extension is used to secure libp2p connections.
P2pExtensionDeprecated
The contents of the specific libp2p extension, containing the public host key and a signature performed using the private host key.
ParseErrorDeprecated
An error that occurs during certificate parsing.
VerificationErrorDeprecated
An error that occurs during signature verification.

Functions§

generateDeprecated
Generates a self-signed TLS certificate that includes a libp2p-specific certificate extension containing the public key of the given secret key.
parseDeprecated
Attempts to parse the provided bytes as a P2pCertificate.