1
0
mirror of https://github.com/matrix-org/matrix-authentication-service.git synced 2025-08-07 17:03:01 +03:00

Fix the native-certs (and therefore docker) build

This commit is contained in:
Quentin Gliech
2024-02-02 14:06:17 +01:00
parent aeca03a120
commit d20b0dc81d
3 changed files with 5 additions and 8 deletions

View File

@@ -43,8 +43,7 @@ fn load_tls_roots_blocking() -> Result<rustls::RootCertStore, NativeRootsLoadErr
let mut roots = rustls::RootCertStore::empty();
let certs = rustls_native_certs::load_native_certs()?;
for cert in certs {
let cert = rustls::Certificate(cert.0);
roots.add(&cert)?;
roots.add(cert)?;
}
if roots.is_empty() {