Skip to content

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

class method

Gem::Security.create_cert_self_signed

create_cert_self_signed(subject, key, age = ONE_YEAR, extensions = EXTENSIONS, serial = 1)

Creates a self-signed certificate with an issuer and subject of subject and the given extensions for the key.