pub(crate) fn create_ed25519_server_config_with_alpn(
server_signing_key: &SigningKey,
_hostname: &str,
server_protocol_config: ServerProtocolConfig,
) -> Result<ServerConfig, CryptoError>Expand description
Create a complete rustls ServerConfig for Ed25519 certificates
This function creates a fully configured rustls ServerConfig that:
- Uses the default crypto provider with Ed25519 support
- Requires TLS 1.3
- Uses anonymous client authentication
- Configures the Ed25519 certificate and signing key
§Arguments
server_signing_key- The Ed25519 signing key for the serverhostname- The hostname for the certificate (e.g., “localhost”)alpn_protocols- The ALPN protocols to advertise to the client
§Returns
A configured rustls ServerConfig ready for use with QUIC