php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /proc/self/root/opt/php-7.0.1/ext/openssl/tests/ |
| files >> //proc/self/root/opt/php-7.0.1/ext/openssl/tests/005.phpt |
--TEST--
openssl_csr_get_subject() tests
--SKIPIF--
<?php
if (!extension_loaded("openssl")) die("skip");
if (!function_exists("utf8_decode")) die("skip");
?>
--FILE--
<?php
$csr = file_get_contents(dirname(__FILE__) . '/005_crt.txt');
if ($out = openssl_csr_get_subject($csr, 1)) {
var_dump($out);
}
echo "\n";
$cn = utf8_decode($out['CN']);
var_dump($cn);
--EXPECTF--
array(6) {
["C"]=>
string(2) "NL"
["ST"]=>
string(13) "Noord Brabant"
["L"]=>
string(4) "Uden"
["O"]=>
string(10) "Triconnect"
["OU"]=>
string(10) "Triconnect"
["CN"]=>
string(15) "*.triconnect.nl"
}
string(15) "*.triconnect.nl"
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`