note 123410 added to function.openssl-pkey-new
| From: | gomez dot alejandre at gmail dot com | Date: | Sat, 08 Dec 2018 13:43:52 +0000 |
| Subject: | note 123410 added to function.openssl-pkey-new | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-209862@lists.php.net to get a copy of this message | ||
Not forget the $configArgs for windows users :D, or the method throws a error with the primary key
//write your configurations :D
$configargs = array(
"config" => "C:/xampp/php/extras/openssl/openssl.cnf",
'private_key_bits'=> 2048,
'default_md' => "sha256",
);
// Create the keypair
$res=openssl_pkey_new($configargs);
// Get private key
openssl_pkey_export($res, $privKey,NULL,$configargs);
and it's for all methods ._ .
a full implementation example here.
https://gist.github.com/DuckHunter213/269a0efd17e709f7f1f177ae7da46ad1
this error take me 3 full days you'r welcome :)
----
Server IP: 208.43.231.9
Probable Submitter: 187.190.29.26
----
Manual Page -- http://php.net/manual/en/function.openssl-pkey-new.php
Edit -- https://master.php.net/note/edit/123410
Del: integrated -- https://master.php.net/note/delete/123410/integrated
Del: useless -- https://master.php.net/note/delete/123410/useless
Del: bad code -- https://master.php.net/note/delete/123410/bad+code
Del: spam -- https://master.php.net/note/delete/123410/spam
Del: non-english -- https://master.php.net/note/delete/123410/non-english
Del: in docs -- https://master.php.net/note/delete/123410/in+docs
Del: other reasons-- https://master.php.net/note/delete/123410
Reject -- https://master.php.net/note/reject/123410
Search -- https://master.php.net/manage/user-notes.php