php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #29961 an openssl_csr_parse function would be handy
Submitted: 2004-09-03 03:55 UTC Modified: 2016-12-30 19:02 UTC
From: tjg at meitech dot com Assigned:
Status: Open Package: OpenSSL related
PHP Version: 4.3.8 OS: FreeBSD 4.10
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2004-09-03 03:55 UTC] tjg at meitech dot com
Description:
------------
It would be a really good idea to implement an openssl_csr_parse function that could be used by someone implementing a PHP-based Certificate Authority to verify the information being presented by the requestor.  For example, if you thought you were issuing an e-mail certificate for "blah@blah.com", it would be really handy to be able to verify that th CSR is asking for a certificate with that e-mail address in it.  Currently, the only way I can figure to check to make sure that the CSR had the correct information in it is to actually do the signing process and then use openssl_x509_parse to make sure that the attributes are correct, and discard the certificate if they are not.

Reproduce code:
---------------
None

Expected result:
----------------
None

Actual result:
--------------
None

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-12-30 19:02 UTC] cmb@php.net
-Package: Feature/Change Request +Package: OpenSSL related
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 19:01:25 2019 UTC