fix(deploy): recognize failed edge certificate shape
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user