Commit 502159a
committed
feat(signing): enforce fail-closed CRL revocation check
Replaces the old string comparison with a CrlValidationStatus enum switch.
VALID and DISABLED pass through; REVOKED raises the existing 'Certificate
has been revoked' error; every other status (urls_inaccessible,
validation_failed, …) raises 'Certificate revocation status could not be
verified' – fail-closed to prevent signing with an unverifiable certificate.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>1 parent 4629bbe commit 502159a
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| |||
44 | 45 | | |
45 | 46 | | |
46 | 47 | | |
47 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
48 | 56 | | |
49 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
50 | 68 | | |
51 | 69 | | |
52 | 70 | | |
| |||
0 commit comments