Welcome to the OA4MP client code. This will show you how to set up a client (also know as a gateway in some places) and get it registered.
The JWT (JSON Web Token) tool. Also creates keys!
The OA4MP Command Line Client -- a full featured client that runs from the command line.
Configuration reference manual