Commit f034f6b3 authored by Kamil Trzcinski's avatar Kamil Trzcinski Committed by James Edwards-Jones

WIP

parent 930a7030
......@@ -89,7 +89,7 @@ class Projects::PagesController < Projects::ApplicationController
def certificate_key
return unless @project.pages_custom_certificate_key
@certificate_key ||= OpenSSL::PKey::RSA.new(@project.pages_custom_certificate_key)
rescue OpenSSL::PKey::PKeyError
rescue OpenSSL::PKey::PKeyError, OpenSSL::Cipher::CipherError
nil
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment