canonical / hotsos

Software analysis toolkit. Define checks in high-level language and leverage library to perform analysis of common Cloud applications.
Apache License 2.0
32 stars 38 forks source link

CryptographyDeprecationWarning #785

Closed MggMuggins closed 6 months ago

MggMuggins commented 7 months ago

Hi,

I received a deprecation warning while running through a few sosreports; I've run this version of the snap on other reports and it doesn't warn, so I figured I'd document it here for awareness sake:

/snap/hotsos/867/lib/python3.10/site-packages/hotsos/core/host_helpers/ssl.py:32: CryptographyDeprecationWarning: Properties that return a naïve datetime object have been deprecated. Please switch to not_valid_after_utc.
  return cert.not_valid_after