rad_eap_test icon indicating copy to clipboard operation
rad_eap_test copied to clipboard

fix: correctly detect expired cert (vs CA)

Open vladimir-mencl-eresearch opened this issue 2 years ago • 0 comments

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=0 pattern from root_certificate to leaf_certificate
  • swapping around whether the pattern should match (certificate) vs should not match (CA certificate)