End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
OpenSSL::Timestamp::Request#nonce
request.nonce → BN or nil
ext/openssl/ossl_ts.c
View on GitHub ↗
static VALUE
ossl_ts_req_get_nonce(VALUE self)
{
TS_REQ *req;
const ASN1_INTEGER * nonce;
GetTSRequest(self, req);
if (!(nonce = TS_REQ_get_nonce(req)))
return Qnil;
return asn1integer_to_num(nonce);
}
Returns the nonce (number used once) that the server shall include in its response.
See also
#nonce=
#message_imprint=
#message_imprint
#policy_id
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0