[?php]
$x509 = openssl_x509_parse($_SERVER['SSL_CLIENT_CERT']);
$subjectAltName = $x509['extensions']['subjectAltName'];
[/?php]

When parsing a x509 certificate and ['extensions']['subjectAltName'] contains a 
newline or space as shown below:

othername:
 Princpal name=t...@test.com

The value in this case "Princpal name=t...@test.com" will not be shown.
$subjectAltName as shown in the code will display "othername:", and only that.

Expected result:
----------------
echo $subjectAltName;
// Should print "othername: Princpal name=t...@test.com"

Is this a bug or ignorance on my part ?
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to