Load multiple root certificates in Auth::Smartcard::Base.store
OpenSSL already supports this, we just need to call OpenSSL::X509::Store#add_file instead of OpenSSL::X509::Store#add_cert. When multiple certificates are loaded, validation checks the whole certificate chain. If a root certificate is missing and only the intermediate is loaded, validation fails.
显示
- config/gitlab.yml.example 1 个添加, 1 个删除config/gitlab.yml.example
- ee/changelogs/unreleased/197463-smartcard_multiple_root_certificates.yml 5 个添加, 0 个删除...nreleased/197463-smartcard_multiple_root_certificates.yml
- ee/lib/gitlab/auth/smartcard/base.rb 3 个添加, 11 个删除ee/lib/gitlab/auth/smartcard/base.rb
- ee/spec/support/shared_examples/lib/gitlab/smartcard_certificate_store_shared_examples.rb 8 个添加, 7 个删除...lib/gitlab/smartcard_certificate_store_shared_examples.rb
想要评论请 注册 或 登录