fix: RustlsConfig::from_der takes Vec<Vec<u8>> (cert chain)
Some checks failed
Lint and Build / format (push) Successful in 39s
Lint and Build / clippy (push) Successful in 2m23s
Lint and Build / build (push) Successful in 3m47s
Lint and Build / test (push) Failing after 0s

This commit is contained in:
goose 2026-07-14 12:12:24 -03:00
parent 3d440702f0
commit 12b7b2dccb

View file

@ -67,7 +67,7 @@ async fn main() {
let cert_der = cert.cert.der().clone();
let key_der = cert.key_pair.serialize_der();
let rustls_cert = axum_server::tls_rustls::RustlsConfig::from_der(
cert_der.to_vec(),
vec![cert_der.to_vec()],
key_der,
)
.await