summaryrefslogtreecommitdiff
path: root/config/initializers/0_license.rb
blob: e7b46a1463019e5449be0703c148f3d9a59205d1 (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

Gitlab.ee do
  public_key_file = File.read(Rails.root.join(".license_encryption_key.pub"))
  public_key = OpenSSL::PKey::RSA.new(public_key_file)
  Gitlab::License.encryption_key = public_key
rescue
  warn "WARNING: No valid license encryption key provided."
end