This commit is contained in:
Kamil Trzcinski 2016-02-10 11:37:27 +01:00 committed by James Edwards-Jones
parent 930a7030b5
commit f034f6b3ec

View file

@ -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