1999-05-13 11:37:32 +00:00
|
|
|
$! TESTCA.COM
|
|
|
|
$
|
2011-03-19 10:58:14 +00:00
|
|
|
$ __arch = "VAX"
|
2009-05-15 16:36:56 +00:00
|
|
|
$ if f$getsyi("cpu") .ge. 128 then -
|
2010-01-27 09:18:42 +00:00
|
|
|
__arch = f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
|
2011-03-19 10:58:14 +00:00
|
|
|
$ if __arch .eqs. "" then __arch = "UNK"
|
|
|
|
$!
|
|
|
|
$ if (p1 .eqs. "64") then __arch = __arch+ "_64"
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
2011-03-19 10:58:14 +00:00
|
|
|
$ openssl = "mcr ''exe_dir'openssl"
|
1999-05-13 11:37:32 +00:00
|
|
|
$
|
|
|
|
$ SSLEAY_CONFIG="-config ""CAss.cnf"""
|
|
|
|
$
|
|
|
|
$ set noon
|
|
|
|
$ if f$search("demoCA.dir") .nes. ""
|
|
|
|
$ then
|
2006-03-18 10:36:15 +00:00
|
|
|
$ @[-.util]deltree [.demoCA]*.*
|
1999-05-13 11:37:32 +00:00
|
|
|
$ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
|
|
|
|
$ delete demoCA.dir;*
|
|
|
|
$ endif
|
|
|
|
$ set on
|
|
|
|
$ open/read sys$ca_input VMSca-response.1
|
|
|
|
$ @[-.apps]CA.com -input sys$ca_input -newca
|
|
|
|
$ close sys$ca_input
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$
|
|
|
|
$ SSLEAY_CONFIG="-config ""Uss.cnf"""
|
|
|
|
$ @[-.apps]CA.com -newreq
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$
|
|
|
|
$ SSLEAY_CONFIG="-config [-.apps]openssl-vms.cnf"
|
|
|
|
$ open/read sys$ca_input VMSca-response.2
|
|
|
|
$ @[-.apps]CA.com -input sys$ca_input -sign
|
|
|
|
$ close sys$ca_input
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$
|
|
|
|
$ @[-.apps]CA.com -verify newcert.pem
|
|
|
|
$ if $severity .ne. 1 then exit 3
|
|
|
|
$
|
|
|
|
$ set noon
|
2006-03-18 10:36:15 +00:00
|
|
|
$ @[-.util]deltree [.demoCA]*.*
|
1999-05-13 11:37:32 +00:00
|
|
|
$ set file/prot=(S:RWED,O:RWED,G:RWED,W:RWED) demoCA.dir;*
|
2000-02-26 03:59:46 +00:00
|
|
|
$ delete demoCA.dir;*
|
|
|
|
$ if f$search("newcert.pem") .nes. "" then delete newcert.pem;*
|
|
|
|
$ if f$search("newcert.pem") .nes. "" then delete newreq.pem;*
|
1999-05-13 11:37:32 +00:00
|
|
|
$ set on
|
|
|
|
$! #usage: CA -newcert|-newreq|-newca|-sign|-verify
|
|
|
|
$
|
|
|
|
$ exit
|