Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

OpenSSL::X509::StoreContext#purpose=

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= #error_string #trust= also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0