WIP
This commit is contained in:
parent
930a7030b5
commit
f034f6b3ec
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue