1999-05-13 11:37:32 +00:00
|
|
|
$! TETSGEN.COM
|
|
|
|
$
|
|
|
|
$ __arch := VAX
|
|
|
|
$ if f$getsyi("cpu") .ge. 128 then __arch := AXP
|
|
|
|
$ exe_dir := sys$disk:[-.'__arch'.exe.apps]
|
|
|
|
$
|
|
|
|
$ T := testcert
|
|
|
|
$ KEY = 512
|
|
|
|
$ CA := [-.certs]testca.pem
|
|
|
|
$
|
|
|
|
$ set noon
|
1999-07-28 23:25:59 +00:00
|
|
|
$ if f$search(T+".1;*") .nes. "" then delete 'T'.1;*
|
|
|
|
$ if f$search(T+".2;*") .nes. "" then delete 'T'.2;*
|
|
|
|
$ if f$search(T+".key;*") .nes. "" then delete 'T'.key;*
|
1999-05-13 11:37:32 +00:00
|
|
|
$ set on
|
|
|
|
$
|
|
|
|
$ write sys$output "generating certificate request"
|
|
|
|
$
|
|
|
|
$ write sys$output "There should be a 2 sequences of .'s and some +'s."
|
|
|
|
$ write sys$output "There should not be more that at most 80 per line"
|
|
|
|
$ write sys$output "This could take some time."
|
|
|
|
$
|
|
|
|
$ mcr 'exe_dir'openssl req -config test.cnf -new -out testreq.pem
|
|
|
|
$ if $severity .ne. 1
|
|
|
|
$ then
|
|
|
|
$ write sys$output "problems creating request"
|
|
|
|
$ exit 3
|
|
|
|
$ endif
|
|
|
|
$
|
|
|
|
$ mcr 'exe_dir'openssl req -verify -in testreq.pem -noout
|
|
|
|
$ if $severity .ne. 1
|
|
|
|
$ then
|
|
|
|
$ write sys$output "signature on req is wrong"
|
|
|
|
$ exit 3
|
|
|
|
$ endif
|