Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
instance method
OpenSSL::X509::Store#flags=
(::Integer flags) -> ::Integer
store.flags = flags
ext/openssl/ossl_x509store.c
View on GitHub ↗
static VALUE
ossl_x509store_set_flags(VALUE self, VALUE flags)
{
X509_STORE *store;
GetX509Store(self, store);
x509vpm_set_flags_i(X509_STORE_get0_param(store), flags);
return flags;
}
Sets the default flags used by certificate chain verification performed with the Store.
NOTE: Despite the name, this method appends the specified flags to the existing flag set rather than replacing it. To clear existing flags, use clear_flags before calling this method.
flags consists of zero or more of the constants defined in OpenSSL::X509 with name V_FLAG_* or’ed together.
OpenSSL::X509::StoreContext#flags= can be used to change the flags for a single verification operation.
See also the man page X509_VERIFY_PARAM_set_flags(3).