In order to use the sgcWebSockets Google Cloud components and Authenticate using Service Accounts, first you must obtain the Private Key Certificate
from Google Cloud.
Find below the steps to get Google Private Key Certificate and how configure in our PubSub sample application.
First login to your Google Cloud Account and use an existing project or create a new one.

Select CREATE SERVICE ACCOUNT and a new page will be shown where you must set the service account name and description

Then select at least one Role, I select PubSub Admin to allow the client publish and subscribe topics, but you can select other role with less privileges

Press CONTINUE and finally you can grant access to other users

Press DONE when you finish and a new record will be shown

The next step is create a new Key, so select the option Create Key in actions column. Select JSON to download the configuration in JSON format and a new Key will be created

Finally you only need to fill the data provided by google in the sgcWebSockets PubSub client. You can use LoadSettingsFromFile to load the configuration JSON file.
