Google Service Account Credentials are available in two file formats: Json and P12. P12 is also known as PFX. The following code shows how to process a P12 file and split into Private Key and Certificate. This code also works with normal SSL Certificate Bundles (PFX).

In another article I show how to use P12 credentials (Private Key) to create Google Access Tokens.

Note: The P12 file format is deprecated. The Google recommended format is now Json.