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)
lib/rubygems/security.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/security.rb, line 453
def self.create_cert_self_signed(subject, key, age = ONE_YEAR,
extensions = EXTENSIONS, serial = 1)
certificate = create_cert subject, key, age, extensions
sign certificate, key, certificate, age, extensions, serial
end
Creates a self-signed certificate with an issuer and subject of subject and the given extensions for the key.
See also
.create_cert_email
.create_digest
.create_cert
.create_key
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0