4 $ if f$getsyi("cpu") .ge. 128 then __arch := AXP
5 $ exe_dir := sys$disk:[-.'__arch'.exe.apps]
7 $ openssl := mcr 'exe_dir'openssl
9 $ SSLEAY_CONFIG="-config ""CAss.cnf"""
12 $ if f$search("demoCA.dir") .nes. ""
14 $ call deltree [.demoCA]*.*
15 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
19 $ open/read sys$ca_input VMSca-response.1
20 $ @[-.apps]CA.com -input sys$ca_input -newca
22 $ if $severity .ne. 1 then exit 3
25 $ SSLEAY_CONFIG="-config ""Uss.cnf"""
26 $ @[-.apps]CA.com -newreq
27 $ if $severity .ne. 1 then exit 3
30 $ SSLEAY_CONFIG="-config [-.apps]openssl-vms.cnf"
31 $ open/read sys$ca_input VMSca-response.2
32 $ @[-.apps]CA.com -input sys$ca_input -sign
34 $ if $severity .ne. 1 then exit 3
37 $ @[-.apps]CA.com -verify newcert.pem
38 $ if $severity .ne. 1 then exit 3
41 $ call deltree [.demoCA]*.*
42 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
43 $ delete demoCA.dir;*,newcert.pem;*,newreq.pem;*
45 $! #usage: CA -newcert|-newreq|-newca|-sign|-verify
49 $ deltree: subroutine ! P1 is a name of a directory
50 $ on control_y then goto dt_STOP
51 $ on warning then goto dt_exit
52 $ _dt_def = f$trnlnm("SYS$DISK")+f$directory()
53 $ if f$parse(p1) .eqs. "" then exit
54 $ set default 'f$parse(p1,,,"DEVICE")''f$parse(p1,,,"DIRECTORY")'
55 $ p1 = f$parse(p1,,,"NAME") + f$parse(p1,,,"TYPE")
56 $ _fp = f$parse(".DIR",p1)
59 $ if _f .eqs. "" then goto dt_loopend
60 $ call deltree [.'f$parse(_f,,,"NAME")']*.*
63 $ _fp = f$parse(p1,".;*")
64 $ if f$search(_fp) .eqs. "" then goto dt_exit
66 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) '_fp'
70 $ set default '_dt_def'
73 $ set default '_dt_def'