7 use OpenSSL::Test qw/:DEFAULT srctop_file/;
8 use OpenSSL::Test::Utils;
16 my $CA = srctop_file("certs", "testca.pem");
18 unlink "$T.1", "$T.2", "$T.key";
19 open RND, ">>", ".rnd";
20 print RND "string to make the random number generator think it has entropy";
23 subtest "generating certificate requests" => sub {
25 if (disabled("rsa")) {
26 @req_new = ("-newkey", "dsa:".srctop_file("apps", "dsa512.pem"));
29 note("There should be a 2 sequences of .'s and some +'s.");
30 note("There should not be more that at most 80 per line");
33 unlink "testkey.pem", "testreq.pem";
37 ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"),
38 @req_new, "-out", "testreq.pem"])),
39 "Generating request");
41 ok(run(app(["openssl", "req", "-config", srctop_file("test", "test.cnf"),
42 "-verify", "-in", "testreq.pem", "-noout"])),
43 "Verifying signature on request");