#39295 [Fbk->Opn]: openssl_csr_sign and options
| From: | bassijunior at yahoo dot com dot br | Date: | Tue, 31 Oct 2006 01:47:10 +0000 |
| Subject: | #39295 [Fbk->Opn]: openssl_csr_sign and options | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104203@lists.php.net to get a copy of this message | ||
ID: 39295
User updated by: bassijunior at yahoo dot com dot br
Reported By: bassijunior at yahoo dot com dot br
-Status: Feedback
+Status: Open
Bug Type: Feature/Change Request
Operating System: Windows XP
PHP Version: 5.1.6
Assigned To: pajoye
New Comment:
I will get the certificate request from a Data Base(Mysql).
After that( in other file), I have to sign this request. But, I want to
add some extensions in the certificate, in the moment of signature. To
sign the request, I use: $usercert_2 = openssl_csr_sign($req_dados,
$cert_dados, $pkeyid, 365, $config, time());
Where $config is: $config = array(
'digest_alg' => 'sha1',
"config" => "$pwd\\openssl.cnf");
Is there some way to put some extensions in the variable $config?
Thanks!
Previous Comments:
------------------------------------------------------------------------
[2006-10-30 16:30:04] pajoye@php.net
Do you want to create the certificate and sign at the same time?
If not, can you explain what you want with some kind of pseudo code?
------------------------------------------------------------------------
[2006-10-30 00:16:03] bassijunior at yahoo dot com dot br
OK.
I know this function.
But this function is used to create a request.
I want to add extension in the moment of signature.
Thanks
------------------------------------------------------------------------
[2006-10-29 17:51:30] pajoye@php.net
See openssl_csr_new.
------------------------------------------------------------------------
[2006-10-28 23:42:40] bassijunior at yahoo dot com dot br
Description:
------------
Hi,
I'm developing a project that use a openssl functions.
I need to write the certificate extension in a x.509 certificate " on
the fly". In others words, I will get a data from DB(MYSQL) and then I
will write the extension X.509 .
Does the openssl_csr_sign can do this? How can I pass more parameters
to this function?
Is it possible? How can I do this?
Thanks!!!
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39295&edit=1