method

create_self_signed_cert

ruby latest stable - Class: WEBrick::Utils
create_self_signed_cert(bits, cn, comment)
public

Creates a self-signed certificate with the given number of bits, the issuer cn and a comment to be stored in the certificate.