Setting up a Google API service account
March 8, 2015 ยท View on GitHub
-
Go to the Google API Console.
-
Click on Create Project.

- Specify a project name and id, and click Create.

- On the dashboard, click Credentials under APIs & auth

- Click Create new Client ID.

- Select Service Account, and click Create Client ID.

- Remember the displayed private key password, and click Okay, got it. A
.p12file will also be downloaded, so make sure you can locate it.

- Save the email address belonging to the the Client ID.

- Open up your favorite terminal app, and navigate to the directory in which the
.p12file was downloaded. Then execute the following command, replacingP12_FILE_NAMEwith the name of your.p12file.
openssl pkcs12 -in P12_FILE_NAME.p12 -out key.pem -nodes
You'll need to enter the private key password as shown in step 7.

- Verify that a
key.pemfile was created. This, along with the email address from step 8, is all you need to create access tokens for this account.