You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has been a recent change on the format of the key, tackled in this bug on the node client.
We might want to do the same for Python, given that now when you create a new service account, the download offered is for the .json file instead of the .p12.
The 'apiui/credential' page on the developer's console offers both P12 creds (the default) and JSON creds. oauth2client 1.3 cannot process the P12 creds:
File "gcloud/datastore/connection.py", line 56, in _request
method='POST', headers=headers, body=data)
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/util.py", line 129, in positional_wrapper
return wrapped(*args, **kwargs)
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 515, in new_request
self._refresh(request_orig)
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 727, in _refresh
self._do_refresh_request(http_request)
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 751, in _do_refresh_request
body = self._generate_refresh_request_body()
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 1274, in _generate_refresh_request_body
assertion = self._generate_assertion()
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/client.py", line 1401, in _generate_assertion
private_key, self.private_key_password), payload)
File "/home/tseaver/projects/agendaless/Google/lib/python2.7/site-packages/oauth2client-1.3-py2.7.egg/oauth2client/crypt.py", line 238, in from_string
'PKCS12 format is not supported by the PyCrypto library. '
NotImplementedError: PKCS12 format is not supported by the PyCrypto library. Try converting to a "PEM" (openssl pkcs12 -in xxxxx.p12 -nodes -nocerts > privatekey.pem) or using PyOpenSSL if native code is an option.
Converting via the suggested 'openssl' command line does not fix it, either.
Activity
jgeewax commentedon Aug 1, 2014
This is functional and you authenticate using the provided .p12 key.
silvolu commentedon Aug 1, 2014
There has been a recent change on the format of the key, tackled in this bug on the node client.
We might want to do the same for Python, given that now when you create a new service account, the download offered is for the .json file instead of the .p12.
tseaver commentedon Oct 3, 2014
The 'apiui/credential' page on the developer's console offers both P12 creds (the default) and JSON creds. oauth2client 1.3 cannot process the P12 creds:
Converting via the suggested 'openssl' command line does not fix it, either.
dhermes commentedon Dec 30, 2014
This seems to be working as intended via
gcloud.credentials.get_for_service_account_p12.Firestore Client derived from google.cloud.client.Client (googleapis#104
feat(v1p1beta1): support Model Adaptation (#104)
99 remaining items
build(deps): bump requests from 2.28.1 to 2.31.0 in /synthtool/gcp/te…
fix: add `charset-utf-8` to response header (#104)
docs: explain how to use repeated struct.Value (#148)
chore: add 'docfx' nox session (#105)
chore: Add dependencies to prerelease validation (#104)
build(python): update docfx job to use new plugin (#104)
chore: new owl bot post processor docker image (#104)
feat!: Leverage new generator, proto-plus, for google-cloud-datastore (…
chore(python): use ubuntu 22.04 in docs image (#104)
feat: Added `form_fields_to_bigquery()` method (#104)
chore: add license headers (#104)
Release v0.4.1 (#104)
refactor(storage): deprecate preserve_acl arg in copy_blob() method (#…
ci: add kokoro change to synth.py (#104)
fix: use the uid for toc entries (#104)