note 49826 added to function.openssl-pkey-get-public
| From: | dankybastardathotmail at osu1 dot php dot net | Date: | Wed, 09 Feb 2005 16:52:05 +0000 |
| Subject: | note 49826 added to function.openssl-pkey-get-public | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-84732@lists.php.net to get a copy of this message | ||
You must also use the string representation of the certificate to get the public key resource:
$dn = array(); // use defaults
$res_privkey = openssl_pkey_new();
$res_csr = openssl_csr_new($dn, $res_privkey);
$res_cert = openssl_csr_sign($res_csr, null, $res_privkey, $ndays);
openssl_x509_export($res_cert, $str_cert);
$res_pubkey = openssl_pkey_get_public($str_cert);
----
Manual Page -- http://www.php.net/manual/en/function.openssl-pkey-get-public.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+49826
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+49826&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+49826&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+49826&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+49826&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+49826&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+49826&report=yes
Search -- http://master.php.net/manage/user-notes.php