From: Operating system: Ubuntu Linux 10.04 PHP version: 5.3.8 Package: OpenSSL related Bug Type: Bug Bug description:php openssl csr parser ignores SANs
Description: ------------ The SANs (Subject Alternative Names) field of a CSR is totally ignored by the CSR parser openssl_csr_get_subject(); Test script: --------------- <?php print_r(openssl_csr_get_subject('-----BEGIN CERTIFICATE REQUEST----- MIIC8jCCAdoCAQAwWzELMAkGA1UEBhMCVVMxDTALBgNVBAgTBFV0YWgxDzANBgNV BAcTBkxpbmRvbjESMBAGA1UEChMJWiBXaWRnZXRzMRgwFgYDVQQDEw93d3cuZXhh bXBsZS5lZHUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDUXRBdEikS M+tUevGctlIil04GNPkB9sff0BhTwn1ckXrMS4IBzO43M6eFR6Bfxr1tAi8WcdPs QoxiF6FBz/A3O3zcJzkLd8WZcFxZx+qIKoi1HY052YKcq1KjhmnUMDfAgPV92Sp1 pHkdvuAjRavYdBir+7DU00X/OLXWFnGaHdyZpSEP2RKVxHC6QLSPpuZH3UtaJdLh +OgoEyCEeqJcsQDDiJ3gOxrOiZLwYoC9tleX8Ih5F2MDwR2TPfy7f3QtrIG6KD2x Sz4ce1JviZVTZvpDHETnNbipf0VkrUapMgSr27s5veGA4IlNMvJyLmWn9TY7rdSG YkT8oRAGuuJ/AgMBAAGgUjBQBgkqhkiG9w0BCQ4xQzBBMD8GA1UdEQQ4MDaCEHRl c3QuZXhhbXBsZS5jb22CEW90aGVyLmV4YW1wbGUuY29tgg93d3cuZXhhbXBsZS5u ZXQwDQYJKoZIhvcNAQEFBQADggEBAM6cf7LD8KtnJPaC3YYhNMiGSedQ6l9tm2li e7N/HX19SdYmNPG7EWIbL/3Gkib9OsVl2kVlXOaWJNvePVq7AfEhVnC2ytwNbWB9 spa2VCz2rdMfeIyMEWaj20DuxaTbdjABuX6XEJb5Pvp9l6XH0pmkFgn9TjZqE6HO nBSjoCsrxcCptDz4usPWaxqjpJuiV4+Iq5sHBWBWWDfL53i/o6Uf2YGERnrhOONp QNU9sHr3jPasDBTZUOJZx4W15MeP9jluyhqWHnXrtPUwcYKPS1Kt3InB26sDQ7Bz v/kDaAV03I6GKff8W6+UogfFmgCus5pSwp8aiqCADtomP503Hd8= -----END CERTIFICATE REQUEST-----')); Expected result: ---------------- Array ( [C] => US [ST] => Utah [L] => Lindon [O] => Z Widgets [CN] => www.example.edu [SANS] => DNS:test.example.com, DNS:other.example.com, DNS:www.example.net ) Actual result: -------------- Array ( [C] => US [ST] => Utah [L] => Lindon [O] => Z Widgets [CN] => www.example.edu ) -- Edit bug report at https://bugs.php.net/bug.php?id=55820&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55820&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55820&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55820&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=55820&r=fixed Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55820&r=needdocs Fixed in release: https://bugs.php.net/fix.php?id=55820&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=55820&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=55820&r=needscript Try newer version: https://bugs.php.net/fix.php?id=55820&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=55820&r=support Expected behavior: https://bugs.php.net/fix.php?id=55820&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=55820&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=55820&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=55820&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55820&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=55820&r=dst IIS Stability: https://bugs.php.net/fix.php?id=55820&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=55820&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=55820&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=55820&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=55820&r=mysqlcfg