note 22331 added to function.openssl-csr-sign
| From: | eric at ypass dot net | Date: | Thu, 13 Jun 2002 20:13:30 +0000 |
| Subject: | note 22331 added to function.openssl-csr-sign | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31836@lists.php.net to get a copy of this message | ||
To generate a self-signed certificate, pass NULL as the signing certificate (2nd parameter). For
example:
$req_key = openssl_pkey_new();
$dn = array(
"countryName" => "US",
"stateOrProvinceName" => "Colorado",
"organizationName" => "yPass.net",
"organizationalUnitName" => "yPass.net",
"commonName" => "yPass.net Root Certificate"
);
$req_csr = openssl_csr_new($dn, $req_key);
$req_cert = openssl_csr_sign($req_csr, NULL, $req_key, 365);
--
http://www.php.net/manual/en/function.openssl-csr-sign.php
http://master.php.net/manage/user-notes.php?action=edit+22331
http://master.php.net/manage/user-notes.php?action=delete+22331
http://master.php.net/manage/user-notes.php?action=reject+22331