Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 25 of 32) sorted by relevance

12

/PHP-5.5/ext/openssl/tests/
H A D008.phpt7 $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 D009.phpt7 $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 D003.phpt31 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 D007.phpt7 $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 Dbug61930.phpt9 $cert = file_get_contents(__DIR__.'/cert.crt');
17 $key = openssl_get_publickey($cert);
H A D024.phpt7 $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 Dbug39217.phpt11 foreach($certs as $cert) {
12 $res = openssl_x509_parse(file_get_contents($dir . '/' . $cert));
H A D021.phpt7 $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 Dcve2013_4073.phpt8 $cert = file_get_contents(__DIR__ . '/cve2013_4073.pem');
9 $info = openssl_x509_parse($cert);
H A Dbug47828.phpt33 $cert = str_replace("\\n", "\n", $csr);
34 $arr = openssl_x509_parse($cert);
H A D025.phpt7 $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 Dbug38261.phpt9 $cert = false;
21 var_dump(openssl_x509_parse($cert));
H A Dbug64802.phpt10 $cert = file_get_contents(__DIR__.'/bug64802.pem');
11 $r = openssl_x509_parse($cert,$use_short_names=true);
H A Dbug28382.phpt10 $cert = file_get_contents(dirname(__FILE__) . "/bug28382cert.txt");
11 $ext = openssl_x509_parse($cert);
H A Dopenssl_x509_parse_basic_v9.phpt9 $cert = "file://" . dirname(__FILE__) . "/cert.crt";
11 var_dump(openssl_x509_parse($cert));
12 var_dump(openssl_x509_parse($cert, false));
H A Dopenssl_x509_parse_basic.phpt9 $cert = "file://" . dirname(__FILE__) . "/cert.crt";
11 var_dump(openssl_x509_parse($cert));
12 var_dump(openssl_x509_parse($cert, false));
H A D023.phpt7 $infile = dirname(__FILE__) . "/cert.crt";
15 $single_cert = "file://" . dirname(__FILE__) . "/cert.crt";
H A Dopenssl.cnf6 x509_extensions = v3_ca # The extensions to add to the self signed cert
H A Dsni_001.phpt36 $cert = $ary['ssl']['peer_certificate'];
37 assert($cert);
39 $cert_ary = openssl_x509_parse($cert);
/PHP-5.5/ext/openssl/
H A Dopenssl.c1307 return cert; in php_openssl_x509_from_zval()
1316 X509 * cert; in PHP_FUNCTION() local
1361 X509 * cert; in PHP_FUNCTION() local
1861 X509 *cert; in PHP_FUNCTION() local
1906 cert = X509_dup(cert); in STACK_OF()
1926 cert = X509_dup(cert); in STACK_OF()
1972 if (cert && !X509_check_private_key(cert, priv_key)) { in PHP_FUNCTION()
2053 if (cert && !X509_check_private_key(cert, priv_key)) { in PHP_FUNCTION()
2528 if (cert && !X509_check_private_key(cert, priv_key)) { in PHP_FUNCTION()
3694 cert = X509_dup(cert); in PHP_FUNCTION()
[all …]
H A DREADME62 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.5/ext/phar/tests/files/
H A Dopenssl.cnf6 x509_extensions = v3_ca # The extensions to add to the self signed cert
/PHP-5.5/ext/mysqlnd/
H A Dmysqlnd_libmysql_compat.h82 #define mysql_ssl_set(c,key,cert,ca,capath,cipher) mysqlnd_ssl_set((c), (key), (cert), (ca), (capat… argument
/PHP-5.5/ext/mysqli/tests/
H A Dbug51647.phpt45 …if (!$link->ssl_set("{$path_to_pems}client-key.pem", "{$path_to_pems}client-cert.pem", "{$path_to_…
/PHP-5.5/ext/mysqli/
H A Dmysqli_fe.c348 ZEND_ARG_INFO(0, cert)
356 ZEND_ARG_INFO(0, cert)

Completed in 73 milliseconds

12