begin data = File.read(Rails.root.join(".openproject-token.pub")) key = OpenSSL::PKey::RSA.new(data) OpenProject::Token.key = key rescue StandardError warn "WARNING: Missing .openproject-token.pub key" end