License Plugin

  • Tags: security
  • Latest: 0.2
  • Last Updated: 12 December 2009
  • Grails version: 1.1.1 > *
  • Authors: null
0 vote
Dependency:
compile ":license:0.2"

 Documentation

Summary

Description

License Management Plugin

This plugin provides the ability to securely create, install and verify license for closed source grails applications. This plugin utilizes TrueLicense Library Collection (TLC).

Author: Manohar Viswanathan (manohar.viswanathan 'at ' gmail.com)

Installation

grails install-plugin license

Usage

  • Generate license file:
grails generate-license
  • Start app:
grails run-app

Components available in your app

  • /license-config/privateKey.store - private key file. This never gets included in your WAR. (You should generate your own private/public keys with keytool command. see tips section below)
  • /license-config/LicensePrivateConfig.properties - holds all necessary configuration to create a license such as issuer, holder, validity etc. Again not included in WAR
  • /grails-app/conf/publicCerts.store - public key file. This is included in WAR
  • /grails-app/conf/LicensePublicConfig.groovy - holds all necessary information required for the client. Included in WAR
  • /grails-app/conf/LicenseFilter - defines which controllers, actions need to be protected.

Components available in the plugin

  • /controller/LicenseController - Install, verify license
  • /services/LicenseService - Install, verify license

Tips

  • To generate private key:
keytool -genkey -alias privatekey -keystore privateKeys.store
  • To generate public key
keytool -export -alias privatekey -file certfile.cer -keystore privateKeys.store

keytool -import -alias publiccert -file certfile.cer -keystore publicCerts.store

  • The system preferences are stored in the registry in windows and file system (/etc/.java/) in Linux. You may need appropriate permissions to be able to do this.