Req #29961 [Opn->Csd]: an openssl_csr_parse function would be handy

From: Date: Fri, 08 Apr 2022 07:48:02 +0000
Subject: Req #29961 [Opn->Csd]: an openssl_csr_parse function would be handy
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-240798@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=29961&edit=1 ID: 29961 Updated by: ilutov@php.net Reported by: tjg at meitech dot com Summary: an openssl_csr_parse function would be handy -Status: Open +Status: Closed Type: Feature/Change Request Package: OpenSSL related Operating System: FreeBSD 4.10 PHP Version: 4.3.8 -Assigned To: +Assigned To: ilutov Block user comment: N Private report: N New Comment: We're closing all feature requests from bugs.php.net. Please create an issue or PR on GitHub if this is still relevant. Previous Comments: ------------------------------------------------------------------------ [2004-09-03 03:55:56] 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 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=29961&edit=1

« previous php.bugs (#240798) next »