/freebsd/crypto/openssl/test/recipes/ |
H A D | 25-test_req.t | 14 use OpenSSL::Test qw/:DEFAULT srctop_file/; 20 require_ok(srctop_file('test', 'recipes', 'tconversion.pl')); 27 @req_new = ("-newkey", "dsa:".srctop_file("apps", "dsa512.pem")); 40 "-key", srctop_file("test", "certs", "ee-key.pem"), 41 "-config", srctop_file("test", "test.cnf"), @req_new ); 60 "-in", srctop_file(@certs, "x509-check.csr"), 71 "-config", srctop_file("test", "test.cnf"), 74 "-key", srctop_file("test", "testrsa.pem")])), 78 "-config", srctop_file("test", "test.cnf"), 83 "-config", srctop_file("tes [all...] |
H A D | 20-test_pkeyutl.t | 30 '-in', srctop_file('test', 'certs', 'sm2.pem'), 31 '-inkey', srctop_file('test', 'certs', 'sm2.key'), 37 '-in', srctop_file('test', 'certs', 'sm2.pem'), 38 '-inkey', srctop_file('test', 'certs', 'sm2.pem'), 43 '-in', srctop_file('test', 'data2.bin'), 44 '-inkey', srctop_file('test', 'certs', 'sm2-pub.key'), 49 '-inkey', srctop_file('test', 'certs', 'sm2.key'), 52 srctop_file('test', 'data2.bin')) == 0, 62 srctop_file('test', 'certs', 'server-ed25519-cert.pem'), 63 '-inkey', srctop_file('test', 'certs', 'server-ed25519-key.pem'), [all …]
|
H A D | 15-test_rsapss.t | 22 ok(run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha1', 27 srctop_file('test', 'testrsa.pem')])), 30 ok(run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha1', 33 srctop_file('test', 'testrsa.pem')])), 36 ok(!run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha512', 38 '-sigopt', 'rsa_mgf1_md:sha512', srctop_file('test', 'testrsa.pem')])), 41 ok(!run(app(['openssl', 'dgst', '-sign', srctop_file('test', 'testrsa.pem'), '-sha512', 43 '-sigopt', 'rsa_mgf1_md:sha1', srctop_file('test', 'testrsa.pem')])), 46 ok(!run(app(['openssl', 'dgst', '-prverify', srctop_file('test', 'testrsa.pem'), '-sha512', 49 srctop_file('test', 'testrsa.pem')])), [all …]
|
H A D | 20-test_dgst.t | 27 my $data_to_sign = srctop_file('test', 'data.bin'); 28 my $other_data = srctop_file('test', 'data2.bin'); 59 my $data_to_sign = srctop_file('test', 'data.bin'); 60 my $other_data = srctop_file('test', 'data2.bin'); 97 srctop_file("test","testrsa.pem"), 98 srctop_file("test","testrsapub.pem")); 103 srctop_file("test","testrsa2048.pem"), 104 srctop_file("test","testrsa2048pub.pem")); 114 srctop_file("test","testdsa.pem"), 115 srctop_file("test","testdsapub.pem")); [all …]
|
H A D | 25-test_x509.t | 25 require_ok(srctop_file("test", "recipes", "tconversion.pl")); 28 my $pem = srctop_file(@certs, "cyrillic.pem"); 33 my $msb = srctop_file(@certs, "cyrillic.msb"); 34 my $utf = srctop_file(@certs, "cyrillic.utf8"); 49 my $p12 = srctop_file("test", "shibboleth.pfx"); 69 my $extfile = srctop_file("test", "v3_ca_exts.cnf"); 70 my $pkey = srctop_file(@certs, "ca-key.pem"); # issuer private key 73 my $signkey = srctop_file(@certs, "serverkey.pem"); 75 my $testcert = srctop_file(@certs, "ee-cert.pem"); 87 -in => srctop_file("test", "testx509.pem") ); [all …]
|
H A D | 25-test_d2i.t | 22 srctop_file('test','d2i-tests','bad_cert.der')])), 26 srctop_file('test','d2i-tests','bad_generalname.der')])), 30 srctop_file('test','d2i-tests','bad_bio.der')])), 39 srctop_file('test','d2i-tests','high_tag.der')])), 45 srctop_file('test','d2i-tests','high_tag.der')])), 51 srctop_file('test','d2i-tests','int0.der')])), 55 srctop_file('test','d2i-tests','int1.der')])), 59 srctop_file('test','d2i-tests','intminus1.der')])), 63 srctop_file('test','d2i-tests','int0.der')])), 67 srctop_file('test','d2i-tests','int1.der')])), [all …]
|
H A D | 15-test_ec.t | 25 require_ok(srctop_file('test','recipes','tconversion.pl')); 34 -in => srctop_file("test","testec-p256.pem") ); 38 -in => srctop_file("test","testec-p256.pem"), 43 -in => srctop_file("test","testecpub-p256.pem"), 49 -in => srctop_file("test","testec-p256.pem") ); 53 -in => srctop_file("test","testec-p256.pem"), 58 -in => srctop_file("test","testecpub-p256.pem"), 64 -in => srctop_file("test", "tested25519.pem") ); 68 -in => srctop_file("test", "tested25519.pem"), 73 -in => srctop_file("test", "tested25519pub.pem"), [all …]
|
H A D | 80-test_pkcs12.t | 12 use OpenSSL::Test qw/:DEFAULT srctop_file with/; 73 "-in", srctop_file("test", "shibboleth.pfx")])), 86 "-CAfile", srctop_file(@path, "sroot-cert.pem"), 87 "-untrusted", srctop_file(@path, "ca-cert.pem"), 88 "-in", srctop_file(@path, "ee-cert.pem"), 97 "-in", srctop_file(@path, "ee-cert.pem"), 98 "-certfile", srctop_file(@path, "v3-certs-TDES.p12"), 110 "-in", srctop_file(@path, "v3-certs-RC2.p12"), 121 "-inkey", srctop_file(@path, "cert-key-cert.pem"), 122 "-in", srctop_file( [all...] |
H A D | 25-test_eai_data.t | 26 require_ok(srctop_file('test','recipes','tconversion.pl')); 29 my $ascii_pem = srctop_file($folder, "ascii_leaf.pem"); 30 my $utf8_pem = srctop_file($folder, "utf8_leaf.pem"); 31 my $kdc_pem = srctop_file($folder, "kdc-cert.pem"); 33 my $ascii_chain_pem = srctop_file($folder, "ascii_chain.pem"); 34 my $utf8_chain_pem = srctop_file($folder, "utf8_chain.pem"); 35 my $kdc_chain_pem = srctop_file($folder, "kdc-root-cert.pem"); 46 is(cmp_text($out, srctop_file($folder, "san.ascii")), 0, 'Comparing othername for ASCII domain'); 50 is(cmp_text($out, srctop_file($folder, "san.utf8")), 0, 'Comparing othername for IDN domain'); 77 srctop_file("test", "certs", "bad-othername-namec.pem"), [all …]
|
H A D | 25-test_crl.t | 20 require_ok(srctop_file('test','recipes','tconversion.pl')); 22 my $pem = srctop_file("test/certs", "cyrillic_crl.pem"); 24 my $utf = srctop_file("test/certs", "cyrillic_crl.utf8"); 27 tconversion( -type => "crl", -in => srctop_file("test","testcrl.pem") ); 33 srctop_file('test', 'testcrl.pem')], 36 srctop_file('test', 'testcrl.pem')], 39 srctop_file('test', 'testcrl.pem')], 43 srctop_file("test","testcrl.pem"), 51 is(cmp_text($out, srctop_file("test/certs", "cyrillic_crl.utf8")),
|
H A D | 90-test_sslapi.t | 33 srctop_file("test", "recipes", "90-test_sslapi_data", 35 srctop_file("test", "default.cnf"), 36 srctop_file("test", 44 srctop_file("test", "recipes", "90-test_sslapi_data", 46 srctop_file("test", "fips-and-base.cnf"), 47 srctop_file("test",
|
H A D | 15-test_rsa.t | 21 require_ok(srctop_file('test', 'recipes', 'tconversion.pl')); 32 ok(run(app([ 'openssl', $cmd, '-check', '-in', srctop_file('test', 'testrsa.pem'), '-noout'])), 41 -in => srctop_file("test", "testrsa.pem") ); 45 -in => srctop_file("test", "testrsa.pem"), 56 -in => srctop_file("test", "testrsapub.pem"), 67 -in => srctop_file("test", "testrsa.pem"),
|
H A D | 80-test_x509aux.t | 25 srctop_file(@path, "roots.pem"), 26 srctop_file(@path, "root+anyEKU.pem"), 27 srctop_file(@path, "root-anyEKU.pem"), 28 srctop_file(@path, "root-cert.pem"), 29 srctop_file(@path, "invalid-cert.pem"),
|
H A D | 15-test_dsa.t | 22 require_ok(srctop_file('test','recipes','tconversion.pl')); 30 -in => srctop_file("test","testdsa.pem") ); 34 -in => srctop_file("test","testdsapub.pem"), 40 -in => srctop_file("test","testdsa.pem"), 45 -in => srctop_file("test","testdsapub.pem"),
|
H A D | 90-test_store.t | 144 my $file = srctop_file($_); 171 my $file = srctop_file($_); 183 my $file = srctop_file($_); 257 srctop_file('test', 'testx509.pem')])), 261 srctop_file('test', 'testx509.pem')])), 264 srctop_file('test', 'testcrl.pem')])), 268 srctop_file('test', 'testx509.pem')])), 271 srctop_file('test', 'testcrl.pem')])), 308 my $cnf = srctop_file('test', 'ca-and-certs.cnf'); 309 my $cakey = srctop_file('test', 'certs', 'ca-key.pem'); [all …]
|
H A D | 30-test_defltfips.t | 33 $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "fips.cnf")); 37 $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "fips-alt.cnf")); 41 $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "fips.cnf")); 46 $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "fips-alt.cnf")); 50 $ENV{OPENSSL_CONF} = abs_path(srctop_file("test", "default.cnf"));
|
H A D | 80-test_ca.t | 23 my $cnf = srctop_file("test","ca-and-certs.cnf"); 25 . srctop_file("apps", $^O eq "VMS" ? "openssl-vms.cnf" : "openssl.cnf") 32 my $cakey = srctop_file("test", "certs", "ca-key.pem"); 39 my $eekey = srctop_file("test", "certs", "ee-key.pem"); 56 my $eekey2 = srctop_file("test", "certs", "ee-key-3072.pem"); 68 "-in", srctop_file("test", "certs", "sm2-csr.pem"), 73 "-cert", srctop_file("test", "certs", "sm2-root.crt"), 74 "-keyfile", srctop_file("test", "certs", "sm2-root.key")]))),
|
H A D | 80-test_dane.t | 23 srctop_file("test", "danetest.pem"), 24 srctop_file("test", "danetest.in")])), "dane tests"); 27 srctop_file("test", "certs", "cross-root.pem"), 28 srctop_file("test", "dane-cross.in")])), "dane cross CA test");
|
H A D | 30-test_prov_config.t | 11 use OpenSSL::Test qw/:DEFAULT srctop_file srctop_dir bldtop_dir/; 25 ok(run(test(["prov_config_test", srctop_file("test", "default.cnf"), 26 srctop_file("test", "recursive.cnf"), 27 srctop_file("test", "pathed.cnf")])), 33 ok(run(test(["prov_config_test", srctop_file("test", "fips.cnf"), 34 srctop_file("test", "recursive.cnf"), 35 srctop_file("test", "pathed.cnf")])),
|
H A D | 80-test_policy_tree.t | 26 my $small_chain = srctop_file("test", "recipes", "80-test_policy_tree_data", 28 my $small_leaf = srctop_file("test", "recipes", "80-test_policy_tree_data", 36 my $large_chain = srctop_file("test", "recipes", "80-test_policy_tree_data", 38 my $large_leaf = srctop_file("test", "recipes", "80-test_policy_tree_data",
|
H A D | 25-test_rusext.t | 21 require_ok(srctop_file('test', 'recipes', 'tconversion.pl')); 22 my $pem = srctop_file("test/certs", "grfc.pem"); 28 is(cmp_text($out_msb, srctop_file('test', 'recipes', '25-test_rusext_data', 'grfc.msb')), 32 is(cmp_text($out_utf8, srctop_file('test', 'recipes', '25-test_rusext_data', 'grfc.utf8')),
|
H A D | 04-test_encoder_decoder.t | 25 my $rsa_key = srctop_file("test", "certs", "ee-key.pem"); 26 my $pss_key = srctop_file("test", "certs", "ca-pss-key.pem"); 30 my $conf = srctop_file("test", "default.cnf"); 45 my $conf = srctop_file("test", "fips-and-base.cnf");
|
H A D | 80-test_ssl_old.t | 46 my $dummycnf = srctop_file("apps", "openssl.cnf"); 48 my $cnf = srctop_file("test", "ca-and-certs.cnf"); 49 my $CAkey = srctop_file("test", "certs", "ca-key.pem"); # "keyCA.ss" 54 my $Ukey = srctop_file("test", "certs", "ee-key.pem"); # "keyU.ss"; 64 my $proxycnf=srctop_file("test", "proxy.cnf"); 65 my $P1key= srctop_file("test", "certs", "alt1-key.pem"); # "keyP1.ss"; 69 my $P2key= srctop_file("test", "certs", "alt2-key.pem"); # "keyP2.ss"; 99 my $configfile = srctop_file("test","default-and-legacy.cnf"); 101 $configfile = srctop_file("test","default.cnf"); 107 srctop_file("test","fips-and-base.cnf")); [all …]
|
H A D | 80-test_cmsapi.t | 19 ok(run(test(["cmsapitest", srctop_file("test", "certs", "servercert.pem"), 20 srctop_file("test", "certs", "serverkey.pem"), 21 srctop_file("test", "recipes", "80-test_cmsapi_data", "encryptedData.der")])),
|
H A D | 25-test_verify_store.t | 19 my $dummycnf = srctop_file("apps", "openssl.cnf"); 20 my $cakey = srctop_file("test", "certs", "ca-key.pem"); 21 my $ukey = srctop_file("test", "certs", "ee-key.pem"); 23 my $cnf = srctop_file("test", "ca-and-certs.cnf");
|