Skip to content

Commit ce5f4e8

Browse files
chore: use new not_valid_after_utc cert field (#261)
1 parent bb693e6 commit ce5f4e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

google/cloud/alloydb/connector/refresh.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def __init__(
9696
ca_cert, cert_chain = certs
9797
# get expiration from client certificate
9898
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)
99+
self.expiration = cert_obj.not_valid_after_utc
100100

101101
# tmpdir and its contents are automatically deleted after the CA cert
102102
# and cert chain are loaded into the SSLcontext. The values

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
release_status = "Development Status :: 4 - Beta"
2323
dependencies = [
2424
"aiohttp",
25-
"cryptography>=38.0.3",
25+
"cryptography>=42.0.0",
2626
"requests",
2727
"google-auth",
2828
"protobuf",

0 commit comments

Comments
 (0)