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

(::Time time) -> ::Time
store.time = time

Sets the time to be used in the certificate verifications with the store. By default, if not specified, the current system time is used.

OpenSSL::X509::StoreContext#time= can be used to change the value for a single verification operation.

See also the man page X509_VERIFY_PARAM_set_time(3).

See also #set_default_paths #trust= #purpose= #verify also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0