Skip to content

Commit cab959c

Browse files
author
Jetski
committed
feat: port cert rotation streaming
1 parent de53298 commit cab959c

5 files changed

Lines changed: 699 additions & 9 deletions

File tree

packages/google-auth/google/auth/transport/_mtls_helper.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,10 @@ def get_client_ssl_credentials(
609609
"""
610610

611611
# 1. Attempt to retrieve X.509 Workload cert and key.
612-
cert, key = _get_workload_cert_and_key(certificate_config_path)
612+
try:
613+
cert, key = _get_workload_cert_and_key(certificate_config_path)
614+
except exceptions.ClientCertError:
615+
cert, key = None, None
613616
if cert and key:
614617
return True, cert, key, None
615618

0 commit comments

Comments
 (0)