We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
not_valid_after_utc
1 parent bb693e6 commit ce5f4e8Copy full SHA for ce5f4e8
google/cloud/alloydb/connector/refresh.py
@@ -96,7 +96,7 @@ def __init__(
96
ca_cert, cert_chain = certs
97
# get expiration from client certificate
98
cert_obj = x509.load_pem_x509_certificate(cert_chain[0].encode("UTF-8"))
99
- self.expiration = cert_obj.not_valid_after.replace(tzinfo=timezone.utc)
+ self.expiration = cert_obj.not_valid_after_utc
100
101
# tmpdir and its contents are automatically deleted after the CA cert
102
# and cert chain are loaded into the SSLcontext. The values
setup.py
@@ -22,7 +22,7 @@
22
release_status = "Development Status :: 4 - Beta"
23
dependencies = [
24
"aiohttp",
25
- "cryptography>=38.0.3",
+ "cryptography>=42.0.0",
26
"requests",
27
"google-auth",
28
"protobuf",
0 commit comments