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