diff options
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libssl/test/testgen.com | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/lib/libssl/test/testgen.com b/src/lib/libssl/test/testgen.com index ec302f524a..5d28ebec72 100644 --- a/src/lib/libssl/test/testgen.com +++ b/src/lib/libssl/test/testgen.com | |||
| @@ -16,18 +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." | 19 | $ append/new nl: .rnd |
| 20 | $ write sys$output "There should not be more that at most 80 per line" | 20 | $ open/append random_file .rnd |
| 21 | $ write random_file "string to make the random number generator think it has entropy" | ||
| 22 | $ close random_file | ||
| 23 | $ | ||
| 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 | $ | ||
| 21 | $ write sys$output "This could take some time." | 38 | $ write sys$output "This could take some time." |
| 22 | $ | 39 | $ |
| 23 | $ mcr 'exe_dir'openssl req -config test.cnf -new -out testreq.pem | 40 | $ mcr 'exe_dir'openssl req -config test.cnf 'req_new' -out testreq.pem |
| 24 | $ if $severity .ne. 1 | 41 | $ if $severity .ne. 1 |
| 25 | $ then | 42 | $ then |
| 26 | $ write sys$output "problems creating request" | 43 | $ write sys$output "problems creating request" |
| 27 | $ exit 3 | 44 | $ exit 3 |
| 28 | $ endif | 45 | $ endif |
| 29 | $ | 46 | $ |
| 30 | $ mcr 'exe_dir'openssl req -verify -in testreq.pem -noout | 47 | $ mcr 'exe_dir'openssl req -config test.cnf -verify -in testreq.pem -noout |
| 31 | $ if $severity .ne. 1 | 48 | $ if $severity .ne. 1 |
| 32 | $ then | 49 | $ then |
| 33 | $ write sys$output "signature on req is wrong" | 50 | $ write sys$output "signature on req is wrong" |
