/PHP-8.0/ext/openssl/tests/ |
H A D | openssl_pkcs7_sign_basic.phpt | 13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 21 var_dump(openssl_pkcs7_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers)… 22 var_dump(openssl_pkcs7_sign($infile, $outfile, $single_cert, $privkey, $headers)); 23 var_dump(openssl_pkcs7_sign($infile, $outfile, $single_cert, $privkey, $assoc_headers)); 24 var_dump(openssl_pkcs7_sign($infile, $outfile, $single_cert, $privkey, $empty_headers)); 25 var_dump(openssl_pkcs7_sign($wrong, $outfile, $single_cert, $privkey, $headers)); 26 var_dump(openssl_pkcs7_sign($empty, $outfile, $single_cert, $privkey, $headers)); 27 var_dump(openssl_pkcs7_sign($infile, $empty, $single_cert, $privkey, $headers)); 28 var_dump(openssl_pkcs7_sign($infile, $outfile, $wrong, $privkey, $headers)); 29 var_dump(openssl_pkcs7_sign($infile, $outfile, $empty, $privkey, $headers));
|
H A D | openssl_cms_sign_basic.phpt | 13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 21 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers)); 26 var_dump(openssl_cms_sign($infile, $outfile, $single_cert, $privkey, $headers)); 27 var_dump(openssl_cms_sign($infile, $outfile, $single_cert, $privkey, $assoc_headers)); 28 var_dump(openssl_cms_sign($infile, $outfile, $single_cert, $privkey, $empty_headers)); 29 var_dump(openssl_cms_sign($wrong, $outfile, $single_cert, $privkey, $headers)); 30 var_dump(openssl_cms_sign($empty, $outfile, $single_cert, $privkey, $headers)); 31 var_dump(openssl_cms_sign($infile, $empty, $single_cert, $privkey, $headers)); 32 var_dump(openssl_cms_sign($infile, $outfile, $wrong, $privkey, $headers)); 33 var_dump(openssl_cms_sign($infile, $outfile, $empty, $privkey, $headers));
|
H A D | openssl_pkcs7_decrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 24 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, $single_cert, $privkey)); 25 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, openssl_x509_read($single_cert), $privkey)); 27 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, $wrong, $privkey)); 28 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, null, $privkey)); 29 var_dump(openssl_pkcs7_decrypt($wrong, $outfile, $single_cert, $privkey)); 30 var_dump(openssl_pkcs7_decrypt($empty, $outfile, $single_cert, $privkey)); 31 var_dump(openssl_pkcs7_decrypt($encrypted, $empty, $single_cert, $privkey)); 32 var_dump(openssl_pkcs7_decrypt($encrypted, $outfile, $empty, $privkey));
|
H A D | openssl_cms_decrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 21 var_dump(openssl_cms_decrypt($encrypted, $outfile, $single_cert, $privkey)); 24 var_dump(openssl_cms_decrypt($encrypted, $outfile, openssl_x509_read($single_cert), $privkey)); 26 var_dump(openssl_cms_decrypt($encrypted, $outfile, $wrong, $privkey)); 27 var_dump(openssl_cms_decrypt($encrypted, $outfile, null, $privkey)); 28 var_dump(openssl_cms_decrypt($wrong, $outfile, $single_cert, $privkey)); 29 var_dump(openssl_cms_decrypt($empty, $outfile, $single_cert, $privkey)); 30 var_dump(openssl_cms_decrypt($encrypted, $empty, $single_cert, $privkey)); 31 var_dump(openssl_cms_decrypt($encrypted, $outfile, $empty, $privkey));
|
H A D | openssl_csr_sign_basic.phpt | 30 $privkey = openssl_pkey_new($config_arg); 31 $csr = openssl_csr_new($dn, $privkey, $args); 33 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $args)); 34 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg)); 37 var_dump(openssl_csr_sign($csr, $wrong, $privkey, 365)); 39 var_dump(openssl_csr_sign($wrong, null, $privkey, 365)); 42 openssl_csr_sign(array(), null, $privkey, 365); 48 var_dump(openssl_csr_sign($csr, array(), $privkey, 365)); 58 var_dump(openssl_csr_sign($csr, null, $privkey, 365, $config_arg));
|
H A D | openssl_private_decrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 13 var_dump(openssl_private_decrypt($encrypted, $output, $privkey)); 17 var_dump(openssl_private_decrypt($wrong, $output3, $privkey)); 21 var_dump(openssl_private_decrypt($encrypted, $output4, array($privkey))); 27 var_dump(openssl_private_decrypt($encrypted, $output5, array($privkey, "")));
|
H A D | bug52093.phpt | 18 $privkey = openssl_pkey_new(); 19 $csr = openssl_csr_new($dn, $privkey); 20 $cert = openssl_csr_sign($csr, null, $privkey, 365, [], PHP_INT_MAX);
|
H A D | bug50293.phpt | 32 $privkey = openssl_pkey_get_private('file://' . __DIR__ . '/private_ec.key'); 33 $csr = openssl_csr_new($dn, $privkey, $args); 34 $sscert = openssl_csr_sign($csr, null, $privkey, 365, $args); 38 openssl_pkey_export_to_file($privkey, "bug50293.pem", null, $args);
|
H A D | openssl_cms_sign_der.phpt | 13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 21 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $empty_head… 22 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
|
H A D | openssl_verify_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 12 openssl_sign($data, $sign, $privkey); 14 var_dump(openssl_verify($data, $sign, $privkey));
|
H A D | openssl_private_encrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 19 var_dump(openssl_private_encrypt($data, $encrypted, $privkey)); 23 var_dump(openssl_private_encrypt($obj, $encrypted, $privkey));
|
H A D | openssl_public_encrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 20 var_dump(openssl_public_encrypt($data, $encrypted, $privkey)); 24 openssl_private_decrypt($encrypted, $output, $privkey);
|
H A D | openssl_sign_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 11 var_dump(openssl_sign($data, $sign, $privkey)); // no output
|
H A D | openssl_csr_export_basic.phpt | 27 $privkey = openssl_pkey_new($config_arg); 28 $csr = openssl_csr_new($dn, $privkey, $args); 36 var_dump(openssl_csr_export($privkey, $output));
|
H A D | 001.phpt | 13 $privkey = openssl_pkey_new($conf); 15 if ($privkey === false) { 27 if (!openssl_pkey_export_to_file($privkey, $key_file_name, $passphrase, $conf)) { 30 var_dump($privkey instanceof OpenSSLAsymmetricKey);
|
H A D | openssl_cms_sign_verify_nodetached_pem.phpt | 15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers)); 39 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers, 58 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
|
H A D | openssl_cms_sign_verify_detached.phpt | 15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers)); 42 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers, 60 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers, 79 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers,
|
H A D | openssl_cms_encrypt_der.phpt | 15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 19 if (openssl_cms_decrypt($cryptfile, $decryptfile, $single_cert, $privkey, OPENSSL_ENCODING_DER) == …
|
H A D | openssl_cms_encrypt_pem.phpt | 15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 19 if (openssl_cms_decrypt($cryptfile, $decryptfile, $single_cert, $privkey, OPENSSL_ENCODING_PEM) == …
|
H A D | openssl_cms_sign_verify_basic.phpt | 15 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 24 var_dump(openssl_cms_sign($infile, $outfile, openssl_x509_read($single_cert), $privkey, $headers));
|
H A D | openssl_public_decrypt_basic.phpt | 8 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 12 openssl_private_encrypt($data, $encrypted, $privkey);
|
H A D | openssl_free_key.phpt | 25 $privkey = openssl_pkey_new($conf); 27 if ($privkey === false) 37 openssl_pkey_export_to_file($privkey, $key_file_name, $passphrase, $conf) or die("failed to export …
|
H A D | openssl_cms_encrypt_basic.phpt | 13 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 24 var_dump(openssl_cms_decrypt($outfile, $outfile2, $single_cert, $privkey));
|
H A D | openssl_pkcs7_encrypt_basic.phpt | 16 $privkey = "file://" . __DIR__ . "/private_rsa_1024.key"; 26 var_dump(openssl_pkcs7_decrypt($outfile, $outfile2, $single_cert, $privkey));
|
/PHP-8.0/ext/phar/tests/files/ |
H A D | openssl.cnf | 3 default_keyfile = privkey.pem
|