Class: Gitlab::BackgroundMigration::FillValidTimeForPagesDomainCertificate::PagesDomain

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/gitlab/background_migration/fill_valid_time_for_pages_domain_certificate.rb

Overview

define PagesDomain with only needed code

Instance Method Summary collapse

Instance Method Details

#x509Object


11
12
13
14
15
16
17
# File 'lib/gitlab/background_migration/fill_valid_time_for_pages_domain_certificate.rb', line 11

def x509
  return unless certificate.present?

  @x509 ||= OpenSSL::X509::Certificate.new(certificate)
rescue OpenSSL::X509::CertificateError
  nil
end