📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 16:02:35
📂
/ (Root)
/
opt
/
alt
/
ruby30
/
share
/
ri
/
system
/
OpenSSL
/
PKey
📍 /opt/alt/ruby30/share/ri/system/OpenSSL/PKey
🔄 Refresh
✏️
Editing: generate_key-c.ri
Read Only
U:RDoc::AnyMethod[iI"generate_key:ETI" OpenSSL::PKey::generate_key;TT:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I" Generates a new key (pair).;To:RDoc::Markup::BlankLine o; ; [ I"OIf a String is given as the first argument, it generates a new random key ;TI"Qfor the algorithm specified by the name just as ::generate_parameters does. ;TI"OIf an OpenSSL::PKey::PKey is given instead, it generates a new random key ;TI"Nfor the same algorithm as the key, using the parameters the key contains.;T@o; ; [I"PSee ::generate_parameters for the details of _options_ and the given block.;T@S:RDoc::Markup::Heading: leveli: textI"Example;To:RDoc::Markup::Verbatim; [ I"Ypkey_params = OpenSSL::PKey.generate_parameters("DSA", "dsa_paramgen_bits" => 2048) ;TI""pkey_params.priv_key #=> nil ;TI"4pkey = OpenSSL::PKey.generate_key(pkey_params) ;TI",pkey.priv_key #=> #<OpenSSL::BN 6277...;T:@format0: @fileI"ext/openssl/ossl_pkey.c;T:0@omit_headings_from_table_of_contents_below0I"tOpenSSL::PKey.generate_key(algo_name [, options]) -> pkey OpenSSL::PKey.generate_key(pkey [, options]) -> pkey ;T0[ I"(*args);T@ FI" PKey;TcRDoc::NormalModule00
💾 Save Changes
❌ Cancel