summaryrefslogtreecommitdiff
path: root/certs/app/controllers/certs_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'certs/app/controllers/certs_controller.rb')
-rw-r--r--certs/app/controllers/certs_controller.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/certs/app/controllers/certs_controller.rb b/certs/app/controllers/certs_controller.rb
index 3ec2f68..6db270c 100644
--- a/certs/app/controllers/certs_controller.rb
+++ b/certs/app/controllers/certs_controller.rb
@@ -4,11 +4,8 @@ class CertsController < ApplicationController
# GET /cert
def show
- @cert = ClientCertificate.create
+ @cert = ClientCertificate.new
render :text => @cert.key + @cert.cert, :content_type => 'text/plain'
- rescue RECORD_NOT_FOUND
- flash[:error] = t(:cert_pool_empty)
- redirect_to root_path
end
end