Crate xstack_x509
source ·Expand description
This module provides a set of utilities for generating and validating X.509 certificates based on the <libp2p Public Key Extension> spec.
Structs§
- The public host key and the signature are ANS.1-encoded into the SignedKey data structure, which is carried in the libp2p Public Key Extension. SignedKey ::= SEQUENCE { publicKey OCTET STRING, signature OCTET STRING }
Enums§
Functions§
- In order to be able to use arbitrary key types, peers don’t use their host key to sign the X.509 certificate they send during the handshake. Instead, the host key is encoded into the libp2p Public Key Extension, which is carried in a self-signed certificate.
- Parse and verify the libp2p certificate from ASN.1 DER format.