EVerest / libevse-security

Apache License 2.0
7 stars 5 forks source link

Fixed some potentially wrong uses of certificate hash #58

Closed AssemblyJohn closed 6 months ago

AssemblyJohn commented 6 months ago

Describe your changes

A instance of using the wrong certificate hash have been fixed. The OCSP cache now builds the certificate hierarchy and retrieves the certificate hash later. A crash has been so prevented.

Naming the certificate leafs have been made clearer, from "SECC_LEAF" to "CSMS_LEAF" or "MF_LEAF" based on the LeafCertificateType.

Issue ticket number and link

Checklist before requesting a review