/PHP-5.4/ext/openssl/tests/ |
H A D | 008.phpt | 7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r"); 11 $b = "file://" . dirname(__FILE__) . "/cert.crt"; 12 $c = "invalid cert"; 16 var_dump(openssl_x509_export($a, $output)); // read cert as a binary string 17 var_dump(openssl_x509_export($b, $output2)); // read cert from a filename string 18 var_dump(openssl_x509_export($c, $output3)); // read an invalid cert, fails 19 var_dump(openssl_x509_export($d, $output4)); // read cert from a resource 31 var_dump(openssl_x509_export_to_file($d, $outfilename)); // read cert from a resource 51 Warning: openssl_x509_export(): cannot get cert from parameter 1 in %s on line %d 55 Warning: openssl_x509_export(): cannot get cert from parameter 1 in %s on line %d [all …]
|
H A D | 009.phpt | 7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r"); 15 $cert = "file://" . dirname(__FILE__) . "/cert.crt"; 18 var_dump(openssl_x509_check_private_key($cert, $key)); 20 var_dump(openssl_x509_check_private_key($cert, ""));
|
H A D | 003.phpt | 31 string(66) "openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert" 35 string(66) "openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert" 37 string(66) "openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert" 39 string(66) "openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert" 41 string(66) "openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert"
|
H A D | 007.phpt | 7 $fp = fopen(dirname(__FILE__) . "/cert.crt","r"); 11 $b = "file://" . dirname(__FILE__) . "/cert.crt"; 12 $c = "invalid cert"; 17 var_dump($res = openssl_x509_read($a)); // read cert as a string 20 var_dump($res = openssl_x509_read($b)); // read cert as a filename string 23 var_dump($res = openssl_x509_read($c)); // read an invalid cert, fails 26 var_dump($res = openssl_x509_read($d)); // read cert from a resource
|
H A D | bug61930.phpt | 9 $cert = file_get_contents(__DIR__.'/cert.crt'); 17 $key = openssl_get_publickey($cert);
|
H A D | 024.phpt | 7 $infile = dirname(__FILE__) . "/cert.crt"; 18 $single_cert = "file://" . dirname(__FILE__) . "/cert.crt"; 49 Warning: openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert in %s on line %d 52 Warning: openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert in %s on line %d 58 Warning: openssl_pkcs7_decrypt(): unable to coerce parameter 3 to x509 cert in %s on line %d
|
H A D | bug39217.phpt | 11 foreach($certs as $cert) { 12 $res = openssl_x509_parse(file_get_contents($dir . '/' . $cert));
|
H A D | 021.phpt | 7 $cert = "file://" . dirname(__FILE__) . "/cert.crt"; 34 var_dump(openssl_csr_sign($csr, $cert, $priv, 365, $config_arg)); 51 Warning: openssl_csr_sign(): cannot get cert from parameter 2 in %s on line %d 69 Warning: openssl_csr_sign(): cannot get cert from parameter 2 in %s on line %d
|
H A D | cve2013_4073.phpt | 8 $cert = file_get_contents(__DIR__ . '/cve2013_4073.pem'); 9 $info = openssl_x509_parse($cert);
|
H A D | 025.phpt | 7 $infile = dirname(__FILE__) . "/cert.crt"; 13 $single_cert = "file://" . dirname(__FILE__) . "/cert.crt"; 54 Warning: openssl_pkcs7_sign(): error getting cert in %s on line %d 57 Warning: openssl_pkcs7_sign(): error getting cert in %s on line %d
|
H A D | bug47828.phpt | 33 $cert = str_replace("\\n", "\n", $csr); 34 $arr = openssl_x509_parse($cert);
|
H A D | bug38261.phpt | 9 $cert = false; 21 var_dump(openssl_x509_parse($cert));
|
H A D | bug64802.phpt | 10 $cert = file_get_contents(__DIR__.'/bug64802.pem'); 11 $r = openssl_x509_parse($cert,$use_short_names=true);
|
H A D | openssl_x509_parse_basic_v9.phpt | 9 $cert = "file://" . dirname(__FILE__) . "/cert.crt"; 11 var_dump(openssl_x509_parse($cert)); 12 var_dump(openssl_x509_parse($cert, false));
|
H A D | bug28382.phpt | 10 $cert = file_get_contents(dirname(__FILE__) . "/bug28382cert.txt"); 11 $ext = openssl_x509_parse($cert);
|
H A D | openssl_x509_parse_basic.phpt | 9 $cert = "file://" . dirname(__FILE__) . "/cert.crt"; 11 var_dump(openssl_x509_parse($cert)); 12 var_dump(openssl_x509_parse($cert, false));
|
H A D | 023.phpt | 7 $infile = dirname(__FILE__) . "/cert.crt"; 15 $single_cert = "file://" . dirname(__FILE__) . "/cert.crt";
|
H A D | openssl.cnf | 6 x509_extensions = v3_ca # The extensions to add to the self signed cert
|
H A D | sni_001.phpt | 36 $cert = $ary['ssl']['peer_certificate']; 37 assert($cert); 39 $cert_ary = openssl_x509_parse($cert);
|
/PHP-5.4/ext/openssl/ |
H A D | openssl.c | 1293 return cert; in php_openssl_x509_from_zval() 1302 X509 * cert; in PHP_FUNCTION() local 1347 X509 * cert; in PHP_FUNCTION() local 1846 X509 *cert; in PHP_FUNCTION() local 1891 cert = X509_dup(cert); in STACK_OF() 1911 cert = X509_dup(cert); in STACK_OF() 1957 if (cert && !X509_check_private_key(cert, priv_key)) { in PHP_FUNCTION() 2038 if (cert && !X509_check_private_key(cert, priv_key)) { in PHP_FUNCTION() 2171 if (cert) { in PHP_FUNCTION() 3628 cert = X509_dup(cert); in PHP_FUNCTION() [all …]
|
H A D | README | 62 resource openssl_get_publickey(mixed cert) 101 resource openssl_read_x509(mixed cert) 103 Parses the cert and returns a resource that can be used with the 257 $cert = fread($fp, 8192); 260 $pk1 = openssl_get_publickey($cert); 264 $fp = fopen("/src/openssl-0.9.6/demos/sign/cert.pem", "r"); 265 $cert = fread($fp, 8192); 267 $pk2 = openssl_get_publickey($cert); 310 $fp = fopen("/src/openssl-0.9.6/demos/sign/cert.pem", "r"); 311 $cert = fread($fp, 8192); [all …]
|
/PHP-5.4/ext/phar/tests/files/ |
H A D | openssl.cnf | 6 x509_extensions = v3_ca # The extensions to add to the self signed cert
|
/PHP-5.4/ext/mysqlnd/ |
H A D | mysqlnd_libmysql_compat.h | 82 #define mysql_ssl_set(c,key,cert,ca,capath,cipher) mysqlnd_ssl_set((c), (key), (cert), (ca), (capat… argument
|
/PHP-5.4/ext/mysqli/tests/ |
H A D | bug51647.phpt | 45 …if (!$link->ssl_set("{$path_to_pems}client-key.pem", "{$path_to_pems}client-cert.pem", "{$path_to_…
|
/PHP-5.4/ext/mysqli/ |
H A D | mysqli_fe.c | 308 ZEND_ARG_INFO(0, cert) 316 ZEND_ARG_INFO(0, cert)
|