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::StoreContext#flags=

(::Integer flags) -> ::Integer
stctx.flags = flags

Sets the verification flags to the context. This overrides the default value set by Store#flags=.

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.

See also the man page X509_VERIFY_PARAM_set_flags(3).

See also #flags #purpose= #error_string #time= also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0