[PHP] Re: Retrieve subjectAltName from client certificate

2011-11-29 Thread Nelson Teixeira
substr($cert_dec, $pos + 8, 11); echo $birthdate; echo ""; echo $docnumber; If anyone has any solution better than this one I would be glad to know. -Nelson 2011/11/24 Nelson Teixeira > Hello, > > I'm trying to read subjectAltName field from a client certificate with > >

[PHP] Retrieve subjectAltName from client certificate

2011-11-24 Thread Nelson Teixeira
Hello, I'm trying to read subjectAltName field from a client certificate with $x509 = openssl_x509_parse($_SERVER['SSL_CLIENT_CERT']); $subjectAltName = $x509['extensions']['subjectAltName']; but the field contains " othername:, othername:, othername:," where the real data should be. There's va