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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to