#39295 [Opn->Csd]: openssl_csr_sign and options
| From: | pajoye@php.net | Date: | Mon, 12 May 2008 09:59:56 +0000 |
| Subject: | #39295 [Opn->Csd]: openssl_csr_sign and options | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-124906@lists.php.net to get a copy of this message | ||
ID: 39295
Updated by: pajoye@php.net
Reported By: bassijunior at yahoo dot com dot br
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: Windows XP
PHP Version: 5.1.6
Assigned To: pajoye
New Comment:
Here:
http://ww.php.net/openssl
Previous Comments:
------------------------------------------------------------------------
[2006-11-25 03:03:17] bassijunior at yahoo dot com dot br
I think that the PHP version 5.2 has what I want.
Where can I find a documentation about the new functions implemented in
the PHP 5.2?
Thanks!
------------------------------------------------------------------------
[2006-11-21 01:00:00] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2006-11-13 23:18:25] pajoye@php.net
It is a v3 extension.
You have to use array('x509_extensions' => 'sectionname') as
configargs, it will use this section from your openssl.cnf .
And the default value will be set using it.
Can you try it?
However I'm unsure why it fails to fetch them from the config, even
using the openssl command line, it does not work.
------------------------------------------------------------------------
[2006-11-11 01:09:55] bassijunior at yahoo dot com dot br
Hi,
Some news??
Thanks!
------------------------------------------------------------------------
[2006-11-06 00:35:38] bassijunior at yahoo dot com dot br
<?php
Here I get the data from the Database.......
.
.
.
$pwd=getcwd();
$dn = array(
"countryName" => "$nacionalidade",
"stateOrProvinceName" => "$estado",
"localityName" => "$cidade",
"commonName" => "$commomName",
"emailAddress" => "$email",
"subjectAltName" => "123456789"
);
$configuracao=array(
"config" => "$pwd\\openssl.cnf"
);
$notext = (bool)"";
$privkey = openssl_pkey_new($configuracao);
$csr = openssl_csr_new($dn, $privkey, $configuracao);
openssl_pkey_export_to_file($privkey, "$pwd\\demoCA\\pkey_teste.pem",
"$passphrase");
openssl_csr_export_to_file($csr, "$pwd\\demoCA\\csr_teste.pem",
$notext);
?>
Is the subjectAltName is a extension, isn't is? But I can put in the
$dn variable(distinguished name). I wanted to put a subjectAltName as
extension, not as a distinguished name.
Thanks!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/39295
--
Edit this bug report at http://bugs.php.net/?id=39295&edit=1