mirror of
https://github.com/internetee/registry.git
synced 2025-06-07 13:15:40 +02:00
changed cert filename format
This commit is contained in:
parent
b5b263f4b2
commit
f966f67fa7
2 changed files with 9 additions and 5 deletions
|
@ -61,11 +61,13 @@ module Admin
|
|||
end
|
||||
|
||||
def download_csr
|
||||
send_data @certificate.csr, filename: "#{@api_user.username}.csr.pem"
|
||||
filename = "#{@api_user.username}_#{Date.today.strftime("%y%m%d")}_portal.csr.pem"
|
||||
send_data @certificate.csr, filename: filename
|
||||
end
|
||||
|
||||
def download_crt
|
||||
send_data @certificate.crt, filename: "#{@api_user.username}.crt.pem"
|
||||
filename = "#{@api_user.username}_#{Date.today.strftime("%y%m%d")}_portal.crt.pem"
|
||||
send_data @certificate.crt, filename: filename
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue