4 $ if f$getsyi("cpu") .ge. 128 then __arch := AXP
5 $ texe_dir := sys$disk:[-.'__arch'.exe.test]
6 $ exe_dir := sys$disk:[-.'__arch'.exe.apps]
10 $ key="[-.apps]server.pem"
16 $ cert="[-.apps]server.pem"
20 $ ssltest := mcr 'texe_dir'ssltest -key 'key' -cert 'cert' -c_key 'key' -c_cert 'cert'
22 $ define/user sys$output testssl-x509-output.
23 $ define/user sys$error nla0:
24 $ mcr 'exe_dir'openssl x509 -in 'cert' -text -noout
26 $ define/user sys$error nla0:
27 $ search/output=nla0: testssl-x509-output. "DSA Public Key"/exact
35 $ delete testssl-x509-output.;*
39 $ copy/concatenate [-.certs]*.pem certs.tmp
40 $ CA = """-CAfile"" certs.tmp"
42 $ CA = """-CAfile"" "+p3
45 $!###########################################################################
47 $ write sys$output "test sslv2"
49 $ if $severity .ne. 1 then goto exit3
51 $ write sys$output "test sslv2 with server authentication"
52 $ 'ssltest' -ssl2 -server_auth 'CA'
53 $ if $severity .ne. 1 then goto exit3
57 $ write sys$output "test sslv2 with client authentication"
58 $ 'ssltest' -ssl2 -client_auth 'CA'
59 $ if $severity .ne. 1 then goto exit3
61 $ write sys$output "test sslv2 with both client and server authentication"
62 $ 'ssltest' -ssl2 -server_auth -client_auth 'CA'
63 $ if $severity .ne. 1 then goto exit3
66 $ write sys$output "test sslv3"
68 $ if $severity .ne. 1 then goto exit3
70 $ write sys$output "test sslv3 with server authentication"
71 $ 'ssltest' -ssl3 -server_auth 'CA'
72 $ if $severity .ne. 1 then goto exit3
74 $ write sys$output "test sslv3 with client authentication"
75 $ 'ssltest' -ssl3 -client_auth 'CA'
76 $ if $severity .ne. 1 then goto exit3
78 $ write sys$output "test sslv3 with both client and server authentication"
79 $ 'ssltest' -ssl3 -server_auth -client_auth 'CA'
80 $ if $severity .ne. 1 then goto exit3
82 $ write sys$output "test sslv2/sslv3"
84 $ if $severity .ne. 1 then goto exit3
86 $ write sys$output "test sslv2/sslv3 with server authentication"
87 $ 'ssltest' -server_auth 'CA'
88 $ if $severity .ne. 1 then goto exit3
90 $ write sys$output "test sslv2/sslv3 with client authentication"
91 $ 'ssltest' -client_auth 'CA'
92 $ if $severity .ne. 1 then goto exit3
94 $ write sys$output "test sslv2/sslv3 with both client and server authentication"
95 $ 'ssltest' -server_auth -client_auth 'CA'
96 $ if $severity .ne. 1 then goto exit3
98 $ write sys$output "test sslv2 via BIO pair"
99 $ 'ssltest' -bio_pair -ssl2
100 $ if $severity .ne. 1 then goto exit3
102 $ write sys$output "test sslv2 with server authentication via BIO pair"
103 $ 'ssltest' -bio_pair -ssl2 -server_auth 'CA'
104 $ if $severity .ne. 1 then goto exit3
108 $ write sys$output "test sslv2 with client authentication via BIO pair"
109 $ 'ssltest' -bio_pair -ssl2 -client_auth 'CA'
110 $ if $severity .ne. 1 then goto exit3
112 $ write sys$output "test sslv2 with both client and server authentication via BIO pair"
113 $ 'ssltest' -bio_pair -ssl2 -server_auth -client_auth 'CA'
114 $ if $severity .ne. 1 then goto exit3
117 $ write sys$output "test sslv3 via BIO pair"
118 $ 'ssltest' -bio_pair -ssl3
119 $ if $severity .ne. 1 then goto exit3
121 $ write sys$output "test sslv3 with server authentication via BIO pair"
122 $ 'ssltest' -bio_pair -ssl3 -server_auth 'CA'
123 $ if $severity .ne. 1 then goto exit3
125 $ write sys$output "test sslv3 with client authentication via BIO pair"
126 $ 'ssltest' -bio_pair -ssl3 -client_auth 'CA'
127 $ if $severity .ne. 1 then goto exit3
129 $ write sys$output "test sslv3 with both client and server authentication via BIO pair"
130 $ 'ssltest' -bio_pair -ssl3 -server_auth -client_auth 'CA'
131 $ if $severity .ne. 1 then goto exit3
133 $ write sys$output "test sslv2/sslv3 via BIO pair"
135 $ if $severity .ne. 1 then goto exit3
139 $ write sys$output "test sslv2/sslv3 w/o DHE via BIO pair"
140 $ 'ssltest' -bio_pair -no_dhe
141 $ if $severity .ne. 1 then goto exit3
144 $ write sys$output "test sslv2/sslv3 with 1024 bit DHE via BIO pair"
145 $ 'ssltest' -bio_pair -dhe1024dsa -v
146 $ if $severity .ne. 1 then goto exit3
148 $ write sys$output "test sslv2/sslv3 with server authentication"
149 $ 'ssltest' -bio_pair -server_auth 'CA'
150 $ if $severity .ne. 1 then goto exit3
152 $ write sys$output "test sslv2/sslv3 with client authentication via BIO pair"
153 $ 'ssltest' -bio_pair -client_auth 'CA'
154 $ if $severity .ne. 1 then goto exit3
156 $ write sys$output "test sslv2/sslv3 with both client and server authentication via BIO pair"
157 $ 'ssltest' -bio_pair -server_auth -client_auth 'CA'
158 $ if $severity .ne. 1 then goto exit3
160 $!###########################################################################
162 $ write sys$output "test tls1 with 1024bit anonymous DH, multiple handshakes"
163 $ 'ssltest' -v -bio_pair -tls1 -cipher "ADH" -dhe1024dsa -num 10 -f -time
164 $ if $severity .ne. 1 then goto exit3
167 $ define/user sys$output nla0:
168 $ mcr 'exe_dir'openssl no-rsa
169 $ save_severity=$SEVERITY
173 $ write sys$output "skipping RSA tests"
175 $ write sys$output "test tls1 with 1024bit RSA, no DHE, multiple handshakes"
176 $ mcr 'texe_dir'ssltest -v -bio_pair -tls1 -cert [-.apps]server2.pem -no_dhe -num 10 -f -time
177 $ if $severity .ne. 1 then goto exit3
179 $ write sys$output "test tls1 with 1024bit RSA, 1024bit DHE, multiple handshakes"
180 $ mcr 'texe_dir'ssltest -v -bio_pair -tls1 -cert [-.apps]server2.pem -dhe1024dsa -num 10 -f -time
181 $ if $severity .ne. 1 then goto exit3
189 $ if p3 .eqs. "" then delete certs.tmp;*