Skip to content

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

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).

See also #flags #purpose= #clear_flags #set_default_paths also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0