...
Create key pair using openssl command described here - create certificate. Copy the public and private keys from this step.
$ openssl req -nodes -x509 -sha256 -newkey rsa:2048 -keyout private.pem -out public.pem
Register OAuth2 client application - register application. Copy the API Key.
Company ID - see this link for instructions on finding your Company ID.
User ID - user id of a technical user who has the right permissions to access OData API
...