#38937 [Bgs]: openssl_csr_parse()
| From: | bassijunior at yahoo dot com dot br | Date: | Sun, 08 Oct 2006 18:51:07 +0000 |
| Subject: | #38937 [Bgs]: openssl_csr_parse() | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-103266@lists.php.net to get a copy of this message | ||
ID: 38937
User updated by: bassijunior at yahoo dot com dot br
Reported By: bassijunior at yahoo dot com dot br
Status: Bogus
Bug Type: OpenSSL related
Operating System: Windows XP
PHP Version: 5.1.6
New Comment:
I found something in the Internet, but it doesn´t work.
Where can I found a good documentation about that?
And, another thing, do you know when the new version of PHP, the
version 5.2 will be available?
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2006-10-08 11:29:36] pajoye@php.net
Snapshots are just like release. You can follow the install
instructions in the manual to install them. You can use the CLI
(console) to test it.
------------------------------------------------------------------------
[2006-10-08 04:33:24] bassijunior at yahoo dot com dot br
Hi,
I think so.
But I don´t know how to use the snapshot.
What can I do to use this? I did a download, but now, apache doesn´t
work.
------------------------------------------------------------------------
[2006-10-05 11:28:10] pajoye@php.net
With 5.2.0 or later:
Is it what you are looking for?
$csr = file_get_contents('somecsr');
$csr_details = openssl_csr_get_subject($csr, 1)
print_r($details);
and to get the pkey:
$key = openssl_csr_get_public_key($csr);
You can try it using the snapshot: http://snaps.php.net but it
will not
be backported to 5.1.
------------------------------------------------------------------------
[2006-10-05 01:34:54] bassijunior at yahoo dot com dot br
No.
I am developing a project using the openssl functions in the PHP.
These certificates, that I generate, aren´t to use as web certificate.
I will use this certificate to prove that a user submited a file for me,
for example. It's a aplication very unusual.
Condensing, before generate a certificate, I have to generate a request
certificate, ok? I do this using openssl_csr_new function.
I only want to know how I can read a certificate request. To read the
certificate(.PEM) I use the openssl_X509_parse, how I showed in my last
comment, but I also need to read the certificate request. How can I read
it? Is there a openssl_????_parse to read a certificate request?
Thanks!
------------------------------------------------------------------------
[2006-10-03 01:02:47] pajoye@php.net
By request, do you mean from an url? like https://example.com?
------------------------------------------------------------------------
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/38937
--
Edit this bug report at http://bugs.php.net/?id=38937&edit=1