Skip to content

Commit

Permalink
Strip microseconds from tls cert times
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Sep 10, 2024
1 parent 0d99f91 commit f249afc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,8 @@ def measurement_to_tls_observation(
tlso.end_entity_certificate_issuer_common_name = (
cert_meta.issuer_common_name
)
tlso.end_entity_certificate_not_valid_after = cert_meta.not_valid_after
tlso.end_entity_certificate_not_valid_before = cert_meta.not_valid_before
tlso.end_entity_certificate_not_valid_after = cert_meta.not_valid_after.replace(microsecond=0)
tlso.end_entity_certificate_not_valid_before = cert_meta.not_valid_before.replace(microsecond=0)
tlso.end_entity_certificate_san_list = cert_meta.san_list
except Exception as exc:
log.warning(exc)
Expand Down

0 comments on commit f249afc

Please sign in to comment.