Normalize plugins Certificates output#1498
Conversation
Normalize plugins Certificates output
|
Thanks for the PR, this is a good step in normalizing certificate fields across the project.
Unfortunately serial numbers can also be negative (signed) integers (4.1.2.2, https://www.ietf.org/rfc/rfc2459.txt, We prefer the notation of serial numbers as integers, as most cryptography libraries do by default as well (BoringSSL, asn1crypto, pyca/cryptography). Perhaps we can add two fields to accommodate both use cases, |
|
@william-billaud I agree with @JSCU-CNI here. Even though it's only a data representation problem of the same data, I can see the value of having a readily available/searchable hex variant too. Maybe opt for
Even more so because Python by default will make that |
Fix documentation related to format fingerprint
Add tests related to negative serial number processing
|
i have added a test with a negative serial number + add serial_number and serial_number_hex field for both plugins. |
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
…ormalize_certlog_output
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Co-authored-by: Erik Schamper <1254028+Schamper@users.noreply.github.com>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1498 +/- ##
==========================================
- Coverage 80.74% 80.74% -0.01%
==========================================
Files 394 394
Lines 34571 34614 +43
==========================================
+ Hits 27916 27948 +32
- Misses 6655 6666 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
CodSpeed Performance ReportMerging this PR will not alter performanceComparing Summary
|
Following #1415
Normalize serial_number output to string format (hex), which is the common way serial number are shown (e.g by browser or openssl).
Rename some field for consistency between plugins that manipu.
cc @JSCU-CNI