Atihska
Atihska

Reputation: 5126

Google Drive: How to get service account email when downloaded as p12

I am integrating my application with drive using service account. When I create a service account and download as p12, how can I show the email address and other key-val pairs that I get when downloaded as json?

When I click the downloaded p12 file, it is a certificate so a wizard to import it opens where I enter the given password "notasecret". And it gets imported in mmc under Local Machine (tried current user also). But I am not sure how to get the email and keyfilepath (I assume this to be the path where this cert is stored) from it?

Upvotes: 1

Views: 2064

Answers (1)

Andres
Andres

Reputation: 671

To retrieve the email address from the P12 or JSON file, perform the following steps:

  1. Go to Google Developer Console.
  2. Select "API Manager" on the top corner drop-down menu.
  3. Next, select "Credentials" on the side menu.
  4. If "Service account key" is created, click on "Manage service accounts" on the far right. You should see the following screenshot with the Email address for service account. There you go :) enter image description here

Upvotes: 1

Related Questions