Skip to content

Commit

Permalink
Update auth_helpers.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vgvoleg authored Nov 28, 2024
1 parent dc978e5 commit d8d3119
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ydb/auth_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ def read_bytes(f):


def load_ydb_root_certificate(path: Optional[str] = None):
path = path if path is not None else os.getenv("YDB_SSL_ROOT_CERTIFICATES_FILE", None)
if path is not None and os.path.exists(path):
return read_bytes(path)
return None

0 comments on commit d8d3119

Please sign in to comment.