Skip to content

Commit 7863389

Browse files
committed
[ruby/openssl] ssl: remove OpenSSL::X509::V_FLAG_CRL_CHECK_ALL from the default store
With OpenSSL 3.6.0, it causes nearly every certificate verification to fail with the message "certificate verify failed (unable to get certificate CRL)" because the CRLs are typically unavailable in the default store used by OpenSSL::SSL::SSLContext#set_params. OpenSSL::X509::V_FLAG_CRL_CHECK_ALL is a flag that extends the CRL checking to all certificates in the chain. In OpenSSL < 3.6.0, the flag alone has no effect, and OpenSSL::X509::V_FLAG_CRL_CHECK must also be set to enable CRL checking. In OpenSSL 3.6.0, OpenSSL::X509::V_FLAG_CRL_CHECK_ALL now implies OpenSSL::X509::V_FLAG_CRL_CHECK. This is inconsistent with the man page and may be fixed in a future OpenSSL 3.6.x release, but this flag is not needed and should not be set by default. Fixes ruby/openssl#949 ruby/openssl@e8481cd687
1 parent e6188c4 commit 7863389

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ext/openssl/lib/openssl/ssl.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ class SSLContext
9191

9292
DEFAULT_CERT_STORE = OpenSSL::X509::Store.new # :nodoc:
9393
DEFAULT_CERT_STORE.set_default_paths
94-
DEFAULT_CERT_STORE.flags = OpenSSL::X509::V_FLAG_CRL_CHECK_ALL
9594

9695
# A callback invoked when DH parameters are required for ephemeral DH key
9796
# exchange.

0 commit comments

Comments
 (0)