license-gen helps you generate, verify and enforce gitlab licenses. It is used in GitLab Enterprise Edition.
Clone this project and then execute:
$ bundle
-
Prepare ruby env.
-
Then execute:
ruby license_gen.rb
-
Follow the prompts to enter essential user info.
-
After the above steps, three license related files will be generated in current workspace folder:
license_key
: private key to encrypt the licenselicense_key.pub
: file contains public key to ship along with the main application#{company}.gitlab-license
: the license file to send to a gitlab customer
-
Replace
/opt/gitlab/embedded/service/gitlab-rails/.license_encryption_key.pub
with generated public key.