4 $ if f$getsyi("cpu") .ge. 128 then __arch := AXP
5 $ exe_dir := sys$disk:[-.'__arch'.exe.apps]
9 $ CA := [-.certs]testca.pem
12 $ if f$search(T+".1;*") .nes. "" then delete 'T'.1;*
13 $ if f$search(T+".2;*") .nes. "" then delete 'T'.2;*
14 $ if f$search(T+".key;*") .nes. "" then delete 'T'.key;*
17 $ write sys$output "generating certificate request"
20 $ open/append random_file .rnd
21 $ write random_file "string to make the random number generator think it has entropy"
25 $ define/user sys$output nla0:
26 $ mcr 'exe_dir'openssl no-rsa
27 $ save_severity=$SEVERITY
31 $ req_new="-newkey dsa:[-.apps]dsa512.pem"
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"
38 $ write sys$output "This could take some time."
40 $ mcr 'exe_dir'openssl req -config test.cnf 'req_new' -out testreq.pem
43 $ write sys$output "problems creating request"
47 $ mcr 'exe_dir'openssl req -config test.cnf -verify -in testreq.pem -noout
50 $ write sys$output "signature on req is wrong"