Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13243 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 84099 invoked by uid 1010); 8 Oct 2004 19:59:53 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 84053 invoked from network); 8 Oct 2004 19:59:52 -0000 Received: from unknown (HELO websrv.digitalorphans.org) (199.246.2.129) by pb1.pair.com with SMTP; 8 Oct 2004 19:59:52 -0000 Received: (qmail 28745 invoked from network); 8 Oct 2004 19:40:43 -0000 Received: from da-66201251.039.trytel.com (HELO gregmaclellan.com) (66.201.251.39) by websrv.digitalorphans.org with SMTP; 8 Oct 2004 19:40:43 -0000 Message-ID: <4166EDEA.20300@gregmaclellan.com> Date: Fri, 08 Oct 2004 15:43:38 -0400 User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: [PATCH] added: openssl_csr_subject() From: greg@gregmaclellan.com (Greg MacLellan) Quick patch to add a function openssl_csr_subject() that allows you to see the subject of a CSR. Uses the same CSR handling routines as openssl_csr_sign() etc, so it can take a string in PEM format, a file, whatever. Prototype: string openssl_csr_subject(mixed csr) Sample return value: string(99) "/C=CA/ST=Ontario/L=Kingston/O=Greg MacLellan/OU=PHP/CN=CSR Test/emailAddress=greg@gregmaclellan.com"