Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

OpenSSL::OCSP::Request#add_nonce

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.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0