4 $ if f$getsyi("cpu") .ge. 128 then -
5 __arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
6 $ if __arch .eqs. "" then __arch = "UNK"
7 $ if (p1 .eqs. 64) then __arch = __arch+ "_64"
8 $ exe_dir = "sys$disk:[-.''__arch'.exe.apps]"
12 $ CA = "[-.certs]testca.pem"
15 $ if f$search(T+".1;*") .nes. "" then delete 'T'.1;*
16 $ if f$search(T+".2;*") .nes. "" then delete 'T'.2;*
17 $ if f$search(T+".key;*") .nes. "" then delete 'T'.key;*
20 $ write sys$output "generating certificate request"
23 $ open/append random_file .rnd
25 "string to make the random number generator think it has entropy"
29 $ define/user sys$output nla0:
30 $ mcr 'exe_dir'openssl no-rsa
31 $ save_severity=$SEVERITY
35 $ req_new="-newkey dsa:[-.apps]dsa512.pem"
39 "There should be a 2 sequences of .'s and some +'s."
41 "There should not be more that at most 80 per line"
44 $ write sys$output "This could take some time."
46 $ mcr 'exe_dir'openssl req -config test.cnf 'req_new' -out testreq.pem
49 $ write sys$output "problems creating request"
53 $ mcr 'exe_dir'openssl req -config test.cnf -verify -in testreq.pem -noout
56 $ write sys$output "signature on req is wrong"