Skip to content

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

class method

OpenSSL::ASN1::ObjectId.register

OpenSSL::ASN1::ObjectId.register(object_id, short_name, long_name)

This adds a new ObjectId to the internal tables. Where object_id is the numerical form, short_name is the short name, and long_name is the long name.

Returns true if successful. Raises an OpenSSL::ASN1::ASN1Error if it fails.

See also #== #ln also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1