GoogleCloudPlatform / alloydb-python-connector

A Python library for connecting securely to your AlloyDB instances.
Apache License 2.0
28 stars 7 forks source link

Update certs in tests to use `not_valid_after_utc` over `not_valid_after` #206

Closed jackwotherspoon closed 6 months ago

jackwotherspoon commented 7 months ago

Timezone aware is becoming the new best practice and recommended datetime in Python 3.12. As such when creating our certs in tests we should update to use not_valid_after_utc as is the new recommendation.

Deprecation notice found here: https://cryptography.io/en/latest/x509/reference/#cryptography.x509.Certificate.not_valid_after