CRT generation with command line tool

This commit is contained in:
Martin Lensment 2015-02-12 12:33:28 +02:00
parent bbe8a780a8
commit f2c9d18473
3 changed files with 14 additions and 28 deletions

View file

@ -12,7 +12,10 @@ class Admin::ApiUsersController < AdminController
end
def create
@api_user = ApiUser.new(api_user_params)
app = api_user_params
app[:csr] = params[:api_user][:csr].open.read if params[:api_user][:csr]
@api_user = ApiUser.new(app)
if @api_user.save
flash[:notice] = I18n.t('record_created')