Linux heracles.o2switch.net 4.18.0-553.62.1.lve.el8.x86_64 #1 SMP Mon Jul 21 17:50:35 UTC 2025 x86_64
/
opt
/
alt
/
ruby27
/
share
/
ri
/
system
/
OpenSSL
/
PKey
/
RSA
/
//opt/alt/ruby27/share/ri/system/OpenSSL/PKey/RSA/new-c.ri
U:RDoc::AnyMethod[iI"new:ETI"OpenSSL::PKey::RSA::new;TT:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"NGenerates or loads an RSA keypair. If an integer _key_size_ is given it ;TI"Jrepresents the desired key size. Keys less than 1024 bits should be ;TI"considered insecure.;To:RDoc::Markup::BlankLine o; ; [I"PA key can instead be loaded from an _encoded_key_ which must be PEM or DER ;TI"Qencoded. A _pass_phrase_ can be used to decrypt the key. If none is given ;TI"-OpenSSL will prompt for the pass phrase.;T@S:RDoc::Markup::Heading: leveli: textI" Examples;T@o:RDoc::Markup::Verbatim; [I"!OpenSSL::PKey::RSA.new 2048 ;TI"0OpenSSL::PKey::RSA.new File.read 'rsa.pem' ;TI"BOpenSSL::PKey::RSA.new File.read('rsa.pem'), 'my pass phrase';T:@format0: @fileI" ext/openssl/ossl_pkey_rsa.c;T:0@omit_headings_from_table_of_contents_below0I"�RSA.new(key_size) => RSA instance RSA.new(encoded_key) => RSA instance RSA.new(encoded_key, pass_phrase) => RSA instance ;T0[ I"(p1 = v1, p2 = v2);T@FI"RSA;TcRDoc::NormalClass00