Skip to content

Commit

Permalink
chore: use new not_valid_after_utc cert field (#261)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackwotherspoon committed Feb 28, 2024
1 parent bb693e6 commit ce5f4e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/cloud/alloydb/connector/refresh.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def __init__(
ca_cert, cert_chain = certs
# get expiration from client certificate
cert_obj = x509.load_pem_x509_certificate(cert_chain[0].encode("UTF-8"))
self.expiration = cert_obj.not_valid_after.replace(tzinfo=timezone.utc)
self.expiration = cert_obj.not_valid_after_utc

# tmpdir and its contents are automatically deleted after the CA cert
# and cert chain are loaded into the SSLcontext. The values
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
release_status = "Development Status :: 4 - Beta"
dependencies = [
"aiohttp",
"cryptography>=38.0.3",
"cryptography>=42.0.0",
"requests",
"google-auth",
"protobuf",
Expand Down

0 comments on commit ce5f4e8

Please sign in to comment.