Closed BiagioFesta closed 8 months ago
--- This breaks API compatibility ---
Certificate
use wtransport::Certificate; let config = ServerConfig::builder() .with_bind_default(4433) .with_certificate(certificate) .build();
Now stuff should be clearer.
Debug
Private Key
Identity
use wtransport::Identity; let config = ServerConfig::builder() .with_bind_default(4433) .with_identity(&identity) .build();
--- This breaks API compatibility ---
Before
Certificate
was the union of a certificate chain and a private key.After
Now stuff should be clearer.
Certificate
is just a single x509 certificate (which implementsDebug
)Private Key
is a single private key.Identity
is aggregation of multiple certificates (certificate chain) and a private keyIdentity
implementsDebug
without leaking the private key.