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::OCSP::Request#add_nonce

(?::String nonce) -> self
request.add_nonce(nonce = nil) → request

Adds a nonce to the OCSP request. If no nonce is given a random one will be generated.

The nonce is used to prevent replay attacks but some servers do not support it.

See also #add_certid #certid .new #check_nonce also in 4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0