Create License Key

This process documents how to add license key checking to a Blocks application, and how to generate new license keys. This is intended mostly for my own use so that I remember how it all works.

  1. Run the new_public_private_keys.rb script from the terminal. For example ./new_public_private_keys.rb Clockwork. This will generate public and private keys named Clockwork.private.pem and Clockwork.public.pem.

  2. Edit the application delegate so that it returns the public key for the method applicationPublicKey.

  3. Copy the public and private keys into ~/Application Support/License/ where they will be accessible by License.app.

  4. Now that you have license keys open License.app, enter the key name, enter the license name and number of users, and then click the ” Generate License Info File”. This file is a configuration file that is used to generate license files for individual users.

  5. To generate keys for individual users open License.app, choose the license info file wanted, enter user information, and then click the “Generate License File” button.