class

OpenSSL::PKey::RSA

Inherits OpenSSL::PKey < Reference < Object

Constructors

new(rsa : LibCrypto::RSA, keyType : KeyFlag = KeyFlag::ALL)
Source
new(bits : Int = 4096)
Source

Class methods

generate(bits : Int = 4096, exponent = 65537_u32)
Source
parse_private_key(text : String, password = nil)
Source
parse_public_key(text : String, password = nil)
Source

Instance methods

finalize
Source
free
Source
freed
Source
keyType
Source
modulus_size
Source
pkey
Source
private_key!
Source
private_key?
Source
public_key!
Source
public_key?
Source
to_io(io : IO, key_flag : KeyFlag, cipher = nil, password = nil)
Source
to_io(io : IO, cipher = nil, password = nil)
Source
to_s(key_flag : KeyFlag, cipher = nil, password = nil)
Source
to_s(cipher = nil, password = nil)

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
to_unsafe
Source