Can you post the certificate in question? I'm a bit curious as to how phpseclib's File_X509 would parse it. eg.
[?php] include('File/X509.php'); $x509 = new File_X509(); print_r$x509->loadX509($_SERVER['SSL_CLIENT_CERT'])); [/?php] On Tue, May 8, 2012 at 7:01 AM, Johansen Daniel <daniel.johan...@evry.com> wrote: > [?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 ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager majord...@openssl.org