mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
Merge pull request #2141 from internetee/2125-admin-unique-certificate-falename
Admin: unique filename for crt/csr files
This commit is contained in:
commit
5a76da93f5
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}_#{Time.zone.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}_#{Time.zone.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