net/tls: Use PKCS_ED25519 as the certificate signature scheme

This keeps compat with old implementation before c3e227adf1
This commit is contained in:
x
2025-12-28 11:15:25 +00:00
parent 0fcd8c96d3
commit a1619c75aa

View File

@@ -256,7 +256,7 @@ pub struct TlsUpgrade {
impl TlsUpgrade {
pub async fn new() -> io::Result<Self> {
// On each instantiation, generate a new keypair and certificate
let Ok(keypair) = rcgen::KeyPair::generate() else {
let Ok(keypair) = rcgen::KeyPair::generate_for(&rcgen::PKCS_ED25519) else {
return Err(io::Error::other("Failed to generate TLS keypair"))
};