OpenSSL::PKey::RSA
Inherits OpenSSL::PKey / Reference / Object
Constructors
new(rsa : LibCrypto::RSA, keyType = KeyType::All)
Sourcenew(size : Int = 4096)
SourceClass methods
generate(size : Int = 4096, exponent = 65537_u32)
Sourceparse_private_key(private_key : String, password = nil)
Sourceparse_public_key(public_key : String, password = nil)
SourceInstance methods
finalize
Sourcemodulus_size
Sourceprivate_key
Sourceprivate_key!
Sourcepublic_key
Sourcepublic_key!
Sourceto_io(io : IO, keyType : KeyType, cipher = nil, password = nil)
Sourceto_io(io : IO, cipher = nil, password = nil)
Sourceto_s(keyType : KeyType, cipher = nil, password = nil)
Sourceto_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.
to_unsafe
Source