method

create_key

v2_2_9 - Show latest stable - Class: Gem::Security
create_key(length = KEY_LENGTH, algorithm = KEY_ALGORITHM)
public

Creates a new key pair of the specified length and algorithm. The default is a 2048 bit RSA key.