Generate crt from csr

This commit is contained in:
Martin Lensment 2015-02-05 18:46:52 +02:00
parent 994d4140c2
commit bbe8a780a8
6 changed files with 58 additions and 7 deletions

View file

@ -1,4 +1,4 @@
= form_for([:admin, @api_user]) do |f|
= form_for([:admin, @api_user], multipart: true) do |f|
- if @api_user.errors.any?
- @api_user.errors.each do |attr, err|
= err
@ -30,7 +30,7 @@
.col-md-6.text-left
.form-group
= f.label :csr, t('certificate_signing_req')
= f.text_area :csr, class: 'form-control'
= f.file_field :csr
%hr
.row
.col-md-12.text-right

View file

@ -37,7 +37,7 @@
.panel-body
%dl.dl-horizontal
%dt= t('csr')
%dd= @api_user.csr
%dd= link_to(t('download'), download_csr_admin_api_user_path)
%dt= t('crt')
%dd= @api_user.crt
%dd= link_to(t('download'), download_crt_admin_api_user_path)