diff options
Diffstat (limited to 'src/lib/libssl/test/testgen.com')
-rw-r--r-- | src/lib/libssl/test/testgen.com | 24 |
1 files changed, 18 insertions, 6 deletions
diff --git a/src/lib/libssl/test/testgen.com b/src/lib/libssl/test/testgen.com index 0e9029371a..5d28ebec72 100644 --- a/src/lib/libssl/test/testgen.com +++ b/src/lib/libssl/test/testgen.com | |||
@@ -16,23 +16,35 @@ $ set on | |||
16 | $ | 16 | $ |
17 | $ write sys$output "generating certificate request" | 17 | $ write sys$output "generating certificate request" |
18 | $ | 18 | $ |
19 | $ write sys$output "There should be a 2 sequences of .'s and some +'s." | ||
20 | $ write sys$output "There should not be more that at most 80 per line" | ||
21 | $ write sys$output "This could take some time." | ||
22 | $ | ||
23 | $ append/new nl: .rnd | 19 | $ append/new nl: .rnd |
24 | $ open/append random_file .rnd | 20 | $ open/append random_file .rnd |
25 | $ write random_file "string to make the random number generator think it has entropy" | 21 | $ write random_file "string to make the random number generator think it has entropy" |
26 | $ close random_file | 22 | $ close random_file |
27 | $ | 23 | $ |
28 | $ mcr 'exe_dir'openssl req -config test.cnf -new -out testreq.pem | 24 | $ set noon |
25 | $ define/user sys$output nla0: | ||
26 | $ mcr 'exe_dir'openssl no-rsa | ||
27 | $ save_severity=$SEVERITY | ||
28 | $ set on | ||
29 | $ if save_severity | ||
30 | $ then | ||
31 | $ req_new="-newkey dsa:[-.apps]dsa512.pem" | ||
32 | $ else | ||
33 | $ req_new="-new" | ||
34 | $ write sys$output "There should be a 2 sequences of .'s and some +'s." | ||
35 | $ write sys$output "There should not be more that at most 80 per line" | ||
36 | $ endif | ||
37 | $ | ||
38 | $ write sys$output "This could take some time." | ||
39 | $ | ||
40 | $ mcr 'exe_dir'openssl req -config test.cnf 'req_new' -out testreq.pem | ||
29 | $ if $severity .ne. 1 | 41 | $ if $severity .ne. 1 |
30 | $ then | 42 | $ then |
31 | $ write sys$output "problems creating request" | 43 | $ write sys$output "problems creating request" |
32 | $ exit 3 | 44 | $ exit 3 |
33 | $ endif | 45 | $ endif |
34 | $ | 46 | $ |
35 | $ mcr 'exe_dir'openssl req -verify -in testreq.pem -noout | 47 | $ mcr 'exe_dir'openssl req -config test.cnf -verify -in testreq.pem -noout |
36 | $ if $severity .ne. 1 | 48 | $ if $severity .ne. 1 |
37 | $ then | 49 | $ then |
38 | $ write sys$output "signature on req is wrong" | 50 | $ write sys$output "signature on req is wrong" |