Module certificate
Available on crate feature
tls
only.Expand description
X.509 certificate handling for libp2p
This module handles generation, signing, and verification of certificates.
Structs§
- GenError
- P2pCertificate
- An X.509 certificate with a libp2p-specific extension is used to secure libp2p connections.
- P2pExtension
- The contents of the specific libp2p extension, containing the public host key and a signature performed using the private host key.
- Parse
Error - Verification
Error
Functions§
- generate
- Generates a self-signed TLS certificate that includes a libp2p-specific certificate extension containing the public key of the given keypair.
- parse
- Attempts to parse the provided bytes as a
P2pCertificate
.