Commit 56933f2f authored by Robert May's avatar Robert May

Add an ops feature flag for cert loading

parent d763b981
......@@ -53,8 +53,10 @@ module Gitlab
store = OpenSSL::X509::Store.new
store.set_default_paths
# Forcibly load the default cert file because the OpenSSL library seemingly ignores it
store.add_file(OpenSSL::X509::DEFAULT_CERT_FILE) if File.exist?(OpenSSL::X509::DEFAULT_CERT_FILE)
if Feature.enabled?(:x509_forced_cert_loading, type: :ops)
# Forcibly load the default cert file because the OpenSSL library seemingly ignores it
store.add_file(OpenSSL::X509::DEFAULT_CERT_FILE) if File.exist?(OpenSSL::X509::DEFAULT_CERT_FILE)
end
# valid_signing_time? checks the time attributes already
# this flag is required, otherwise expired certificates would become
......
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