[?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 [email protected] The value in this case "Princpal [email protected]" will not be shown. $subjectAltName as shown in the code will display "othername:", and only that. Expected result: ---------------- echo $subjectAltName; // Should print "othername: Princpal [email protected]" Is this a bug or ignorance on my part ? ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [email protected]
