note 102392 added to function.openssl-pkey-new

[email protected] Fri, 11 Feb 2011 06:17:53 -0800
Newsgroups php.notes
Message-ID <[email protected]>
If you want to change the default private key size (1024) too something else you can use the following code:
 
<?php 
$config = array('private_key_bits' => 512);
$privKey = openssl_pkey_new($config);

?>

Mind though that the minimum number of bits is 384. Any lower will trigger an error.
----
Server IP: 69.147.83.197
Probable Submitter: 83.232.96.217
----
Manual Page -- http://www.php.net/manual/en/function.openssl-pkey-new.php
Edit        -- https://master.php.net/note/edit/102392
Del: integrated  -- https://master.php.net/note/delete/102392/integrated
Del: useless     -- https://master.php.net/note/delete/102392/useless
Del: bad code    -- https://master.php.net/note/delete/102392/bad+code
Del: spam        -- https://master.php.net/note/delete/102392/spam
Del: non-english -- https://master.php.net/note/delete/102392/non-english
Del: in docs     -- https://master.php.net/note/delete/102392/in+docs
Del: other reasons-- https://master.php.net/note/delete/102392
Reject      -- https://master.php.net/note/reject/102392
Search      -- https://master.php.net/manage/user-notes.php