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#purpose=

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

Sets the purpose of the context. This overrides the default value set by Store#purpose=.

See also the man page X509_VERIFY_PARAM_set_purpose(3).

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