note 82253 added to function.openssl-pkey-new
| From: | Brad at osu1 dot php dot net | Date: | Wed, 02 Apr 2008 20:17:50 +0000 |
| Subject: | note 82253 added to function.openssl-pkey-new | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137868@lists.php.net to get a copy of this message | ||
It's easier than all that, if you just want the keys:
<?php
// Create the keypair
$res=openssl_pkey_new();
// Get private key
openssl_pkey_export($res, $privkey);
// Get public key
$pubkey=openssl_pkey_get_details($res);
$pubkey=$pubkey["key"];
?>
----
Server IP: 209.41.74.194
Probable Submitter: 65.190.106.26
----
Manual Page -- http://www.php.net/manual/en/function.openssl-pkey-new.php
Edit -- https://master.php.net/note/edit/82253
Del: integrated -- https://master.php.net/note/delete/82253/integrated
Del: useless -- https://master.php.net/note/delete/82253/useless
Del: bad code -- https://master.php.net/note/delete/82253/bad+code
Del: spam -- https://master.php.net/note/delete/82253/spam
Del: non-english -- https://master.php.net/note/delete/82253/non-english
Del: in docs -- https://master.php.net/note/delete/82253/in+docs
Del: other reasons-- https://master.php.net/note/delete/82253
Reject -- https://master.php.net/note/reject/82253
Search -- https://master.php.net/manage/user-notes.php