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