fix(deploy): recognize failed edge certificate shape

This commit is contained in:
Codex
2026-08-11 23:33:57 +03:00
parent d641744dca
commit 1e01161a83
2 changed files with 132 additions and 3 deletions
+3 -3
View File
@@ -2370,9 +2370,9 @@ def device_edge_channel_invalid_identity_is_exact_recoverable():
return False
text = device_edge_channel_certificate_text(certificate)
if (
text.count("X509v3 Basic Constraints: critical") != 2
or "CA:TRUE" not in text
or "CA:FALSE" not in text
text.count("X509v3 Basic Constraints:") != 2
or text.count("CA:TRUE") != 1
or text.count("CA:FALSE") != 1
):
return False
if (