[core] Device certificates: device_certs host field; edge config v3 and Caddy client_authentication with a CA bundle and an allow list, 403 without a certificate

This commit is contained in:
2026-11-07 22:46:07 +01:00
parent dc23bfe842
commit 18da3f5d5a
11 changed files with 201 additions and 14 deletions
+5
View File
@@ -17,6 +17,11 @@
mod caddy;
mod edge;
/// In the certificate directory: the CA bundle for device certificates (written by control).
pub const DEVICE_CA_FILE: &str = "domi-devices-ca.pem";
/// In the certificate directory: every allowed (issued, not revoked) device certificate.
pub const DEVICE_ALLOW_FILE: &str = "domi-devices.pem";
use std::net::SocketAddr;
use crate::Model;