mirror of
https://github.com/internetee/registry.git
synced 2025-07-30 14:36:22 +02:00
feat: improve certificate download extensions
Update certificate download functionality to use appropriate file extensions: - Use .p12 extension for PKCS#12 files - Keep .pem extension for PEM-encoded files (CSR, CRT, private key) This change ensures that downloaded certificate files have the correct extension based on their format, making it easier for users to identify and use the files correctly.
This commit is contained in:
parent
51035d1ddf
commit
5355397025
15 changed files with 281 additions and 262 deletions
|
@ -118,7 +118,11 @@ Rails.application.routes.draw do
|
|||
end
|
||||
end
|
||||
resources :white_ips, only: %i[index show update create destroy]
|
||||
resources :certificates, only: %i[create]
|
||||
resources :certificates, only: %i[create] do
|
||||
scope module: :certificates do
|
||||
post 'p12', to: 'p12#create', on: :collection
|
||||
end
|
||||
end
|
||||
namespace :registrar do
|
||||
resources :notifications, only: %i[index show update] do
|
||||
collection do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue