Skip to content

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

instance method

OpenSSL::X509::Name#to_s

name.to_s → string
name.to_s(format) → string

Returns a String representation of the Distinguished Name. format is one of:

If format is omitted, the largely broken and traditional OpenSSL format is used.

See also #to_der #to_utf8 #to_a also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1