4 $ if f$getsyi("cpu") .ge. 128 then -
5 __arch := f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
6 $ if __arch .eqs. "" then __arch := UNK
8 $ openssl := mcr 'exe_dir'openssl
10 $ SSLEAY_CONFIG="-config ""CAss.cnf"""
13 $ if f$search("demoCA.dir") .nes. ""
15 $ @[-.util]deltree [.demoCA]*.*
16 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
20 $ open/read sys$ca_input VMSca-response.1
21 $ @[-.apps]CA.com -input sys$ca_input -newca
23 $ if $severity .ne. 1 then exit 3
26 $ SSLEAY_CONFIG="-config ""Uss.cnf"""
27 $ @[-.apps]CA.com -newreq
28 $ if $severity .ne. 1 then exit 3
31 $ SSLEAY_CONFIG="-config [-.apps]openssl-vms.cnf"
32 $ open/read sys$ca_input VMSca-response.2
33 $ @[-.apps]CA.com -input sys$ca_input -sign
35 $ if $severity .ne. 1 then exit 3
38 $ @[-.apps]CA.com -verify newcert.pem
39 $ if $severity .ne. 1 then exit 3
42 $ @[-.util]deltree [.demoCA]*.*
43 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
45 $ if f$search("newcert.pem") .nes. "" then delete newcert.pem;*
46 $ if f$search("newcert.pem") .nes. "" then delete newreq.pem;*
48 $! #usage: CA -newcert|-newreq|-newca|-sign|-verify