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
<[email protected]> 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 [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]
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [email protected]
Automated List Manager [email protected]