I am getting the below error message while trying to access my google cloud storage from one of my Google Compute Engine instance using gsutil command. Below is the command and error message.
Command:
gsutil ls gs://my-storage-bucket
Error message:
Your "Oauth 2.0 User Account" credentials are invalid. For more help, see "gsutil help creds", or re-run the gsutil config command (see "gsutil help config").
Failure: [Errno 1] _ssl.c:504: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed.
I also tried authenticating the SDK using gcloud auth login
and gsutil config
and was also able to generate authorization code from the link generated after running the command gsutil config
. The command again exited with the same error message. I did not get any solution even after searching for hours. The command was working fine few days before and it is not throwing any error in my local machine and other instances. Please help me out.
gcloud components update
to get the latestgsutil
version. Also, please make sure that you login once again after the update, so that the old credentials are no longer used. Usegcloud auth login [YOUR_ACCOUNT]
and, after the login, try the same operation you did before. – Metastasize