BIO pairs.
[openssl.git] / test / testgen.com
1 $! TETSGEN.COM
2 $
3 $       __arch := VAX
4 $       if f$getsyi("cpu") .ge. 128 then __arch := AXP
5 $       exe_dir := sys$disk:[-.'__arch'.exe.apps]
6 $
7 $       T := testcert
8 $       KEY = 512
9 $       CA := [-.certs]testca.pem
10 $
11 $       set noon
12 $       delete 'T'.1;*,'T'.2;*,'T'.key;*
13 $       set on
14 $
15 $       write sys$output "generating certificate request"
16 $
17 $       write sys$output "There should be a 2 sequences of .'s and some +'s."
18 $       write sys$output "There should not be more that at most 80 per line"
19 $       write sys$output "This could take some time."
20 $
21 $       mcr 'exe_dir'openssl req -config test.cnf -new -out testreq.pem
22 $       if $severity .ne. 1
23 $       then
24 $           write sys$output "problems creating request"
25 $           exit 3
26 $       endif
27 $
28 $       mcr 'exe_dir'openssl req -verify -in testreq.pem -noout
29 $       if $severity .ne. 1
30 $       then
31 $           write sys$output "signature on req is wrong"
32 $           exit 3
33 $       endif