[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

[PHP] Re: Retrieve subjectAltName from client certificate

2011-11-29 Thread Nelson Teixeira
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 $x509 = openssl_x509_parse($_SERVER['SSL_CLIENT_CERT']); $subjectAltName = $x509['extensions']['subjectAltName']; but the field contains