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 $ if (p1 .eqs. "64") then __arch = __arch+ "_64"
10 $ openssl = "mcr ''exe_dir'openssl"
12 $ SSLEAY_CONFIG="-config ""CAss.cnf"""
15 $ if f$search("demoCA.dir") .nes. ""
17 $ @[-.util]deltree [.demoCA]*.*
18 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
22 $ open/read sys$ca_input VMSca-response.1
23 $ @[-.apps]CA.com -input sys$ca_input -newca
25 $ if $severity .ne. 1 then exit 3
28 $ SSLEAY_CONFIG="-config ""Uss.cnf"""
29 $ @[-.apps]CA.com -newreq
30 $ if $severity .ne. 1 then exit 3
33 $ SSLEAY_CONFIG="-config [-.apps]openssl-vms.cnf"
34 $ open/read sys$ca_input VMSca-response.2
35 $ @[-.apps]CA.com -input sys$ca_input -sign
37 $ if $severity .ne. 1 then exit 3
40 $ @[-.apps]CA.com -verify newcert.pem
41 $ if $severity .ne. 1 then exit 3
44 $ @[-.util]deltree [.demoCA]*.*
45 $ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
47 $ if f$search("newcert.pem") .nes. "" then delete newcert.pem;*
48 $ if f$search("newcert.pem") .nes. "" then delete newreq.pem;*
50 $! #usage: CA -newcert|-newreq|-newca|-sign|-verify