Authentication question - Ruby google-cloud-ruby

it's possible to use a pkcs12 certificate (file.p12) for Authentication ?

Asked Oct 12 '21 11:10
avatar malachheb
malachheb

2 Answer:

I don't think so -- I think you can only use a JSON keyfile (which you can get from the Cloud Console).

1
Answered Nov 03 '15 at 14:52
avatar  of jgeewax
jgeewax

thinks for your quick reply, in fact I think it's possible to use a .pem key but not a pkcs12

 hash = {
   "token_credential_uri" => "https://accounts.google.com/o/oauth2/token",
   "audience" =>  "https://accounts.google.com/o/oauth2/token",
   "client_email" => "xx@developer.gserviceaccount.com",
   "private_key" => "file.pem"
 }
 gcloud = Gcloud.new("sample-data", hash)
1
Answered Nov 03 '15 at 15:06
avatar  of malachheb
malachheb