[PATCH] added: openssl_csr_subject()
| From: | Greg MacLellan | Date: | Fri, 08 Oct 2004 19:43:38 +0000 |
| Subject: | [PATCH] added: openssl_csr_subject() | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-13243@lists.php.net to get a copy of this message | ||
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"