I am trying to connect to GCP where I have set up my file ("private_key_file") and trying to read the content within that file.
def gcsStorageClient(errLogRef):
try:
storage_client = storage.Client(os.environ.get("project_name"))
bucket = storage_client.get_bucket(os.environ.get("bucket_name"))
blob = bucket.get_blob(os.environ.get("private_key_file"))
file = blob.download_as_string()
return file
except Exception as error:
print("error:: " + error)
But I am seeing the below exception from my MAC OS which is related to SSL Verification, it seems like MAC firewall client is blocking the connect. Is there any way to say SSLVerify false or create a proxy to connect to GCP
exception: HTTPSConnectionPool(host='oauth2.googleapis.com', port=443): Max retries exceeded
with url: /token (Caused by SSLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate
verify failed (_ssl.c:852)
Is there any way to say SSLVerify false or create a proxy to connect to GCP?
PS: All environment values along with json file are already set into the running environment.