rad_eap_test
rad_eap_test copied to clipboard
fix: correctly detect expired cert (vs CA)
In OpenSSL certificate chain dump, depth=0 corresponds to the leaf (end-entity) certificate (not root CA).
rad_eap_test was incorrectly reporting CA certificate expired for an expired leaf certificate.
Fix the logic by:
- renaming the
depth=0pattern fromroot_certificatetoleaf_certificate - swapping around whether the pattern should match (certificate) vs should not match (CA certificate)