- Open https://console.firebase.google.com/project/_/settings/serviceaccounts/adminsdk and select the project you want to generate a private key file for.
- Click on "Manage service account permissions"
- Under Actions column click on 3 dots and click on "Manage keys"
- On the new page click ADD KEY > Create new key
- Securely store the JSON file containing the key.