8 cecopy ..\apps\openssl.cnf CE:\OpenSSL
9 set OPENSSL_CONF=\OpenSSL\openssl.cnf
11 set CERUN_PASS_ENV=OPENSSL_CONF HOME
13 rem run this from inside the bin directory
15 rem Copy the DLL's (though they'll only exist if we're in out32dll)
16 if exist libeay32.dll cecopy libeay32.dll CE:\OpenSSL
17 if exist ssleay32.dll cecopy ssleay32.dll CE:\OpenSSL
20 call %test%\testce2 rsa_test
21 if errorlevel 1 goto done
24 call %test%\testce2 destest
25 if errorlevel 1 goto done
28 call %test%\testce2 ideatest
29 if errorlevel 1 goto done
32 call %test%\testce2 bftest
33 if errorlevel 1 goto done
36 call %test%\testce2 shatest
37 if errorlevel 1 goto done
40 call %test%\testce2 sha1test
41 if errorlevel 1 goto done
44 call %test%\testce2 md5test
45 if errorlevel 1 goto done
48 call %test%\testce2 md2test
49 if errorlevel 1 goto done
52 call %test%\testce2 mdc2test
53 if errorlevel 1 goto done
56 call %test%\testce2 rc2test
57 if errorlevel 1 goto done
60 call %test%\testce2 rc4test
61 if errorlevel 1 goto done
64 call %test%\testce2 randtest
65 if errorlevel 1 goto done
68 call %test%\testce2 dhtest
69 if errorlevel 1 goto done
72 call %test%\testce2 exptest
73 if errorlevel 1 goto done
76 call %test%\testce2 dsatest
77 if errorlevel 1 goto done
80 call %test%\testencce openssl.exe
81 if errorlevel 1 goto done
84 call %test%\testpemce openssl.exe
85 if errorlevel 1 goto done
87 cecopy openssl.exe CE:\OpenSSL
90 copy ..\certs\*.pem cert.tmp >nul
91 cecopy cert.tmp CE:\OpenSSL
92 cemkdir CE:\OpenSSL\certs
93 rem cecopy ..\certs\*.pem CE:\OpenSSL\certs
94 cecopy ..\certs\ca-cert.pem CE:\OpenSSL\certs
95 cecopy ..\certs\dsa-ca.pem CE:\OpenSSL\certs
96 cecopy ..\certs\dsa-pca.pem CE:\OpenSSL\certs
97 cecopy ..\certs\factory.pem CE:\OpenSSL\certs
98 cecopy ..\certs\ICE-CA.pem CE:\OpenSSL\certs
99 cecopy ..\certs\ICE-root.pem CE:\OpenSSL\certs
100 cecopy ..\certs\ICE-user.pem CE:\OpenSSL\certs
101 cecopy ..\certs\nortelCA.pem CE:\OpenSSL\certs
102 cecopy ..\certs\pca-cert.pem CE:\OpenSSL\certs
103 cecopy ..\certs\RegTP-4R.pem CE:\OpenSSL\certs
104 cecopy ..\certs\RegTP-5R.pem CE:\OpenSSL\certs
105 cecopy ..\certs\RegTP-6R.pem CE:\OpenSSL\certs
106 cecopy ..\certs\rsa-cca.pem CE:\OpenSSL\certs
107 cecopy ..\certs\thawteCb.pem CE:\OpenSSL\certs
108 cecopy ..\certs\thawteCp.pem CE:\OpenSSL\certs
109 cecopy ..\certs\timCA.pem CE:\OpenSSL\certs
110 cecopy ..\certs\tjhCA.pem CE:\OpenSSL\certs
111 cecopy ..\certs\vsign1.pem CE:\OpenSSL\certs
112 cecopy ..\certs\vsign2.pem CE:\OpenSSL\certs
113 cecopy ..\certs\vsign3.pem CE:\OpenSSL\certs
114 cecopy ..\certs\vsignss.pem CE:\OpenSSL\certs
115 cecopy ..\certs\vsigntca.pem CE:\OpenSSL\certs
116 cerun CE:\OpenSSL\openssl verify -CAfile \OpenSSL\cert.tmp \OpenSSL\certs\*.pem
119 call %test%\testssce openssl.exe
120 if errorlevel 1 goto done
122 cecopy ssltest.exe CE:\OpenSSL
123 cecopy ..\apps\server.pem CE:\OpenSSL
124 cecopy ..\apps\client.pem CE:\OpenSSL
127 cerun CE:\OpenSSL\ssltest -ssl2
128 if errorlevel 1 goto done
130 echo test sslv2 with server authentication
131 cerun CE:\OpenSSL\ssltest -ssl2 -server_auth -CAfile \OpenSSL\cert.tmp
132 if errorlevel 1 goto done
134 echo test sslv2 with client authentication
135 cerun CE:\OpenSSL\ssltest -ssl2 -client_auth -CAfile \OpenSSL\cert.tmp
136 if errorlevel 1 goto done
138 echo test sslv2 with both client and server authentication
139 cerun CE:\OpenSSL\ssltest -ssl2 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
140 if errorlevel 1 goto done
143 cerun CE:\OpenSSL\ssltest -ssl3
144 if errorlevel 1 goto done
146 echo test sslv3 with server authentication
147 cerun CE:\OpenSSL\ssltest -ssl3 -server_auth -CAfile \OpenSSL\cert.tmp
148 if errorlevel 1 goto done
150 echo test sslv3 with client authentication
151 cerun CE:\OpenSSL\ssltest -ssl3 -client_auth -CAfile \OpenSSL\cert.tmp
152 if errorlevel 1 goto done
154 echo test sslv3 with both client and server authentication
155 cerun CE:\OpenSSL\ssltest -ssl3 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
156 if errorlevel 1 goto done
158 echo test sslv2/sslv3
159 cerun CE:\OpenSSL\ssltest
160 if errorlevel 1 goto done
162 echo test sslv2/sslv3 with server authentication
163 cerun CE:\OpenSSL\ssltest -server_auth -CAfile \OpenSSL\cert.tmp
164 if errorlevel 1 goto done
166 echo test sslv2/sslv3 with client authentication
167 cerun CE:\OpenSSL\ssltest -client_auth -CAfile \OpenSSL\cert.tmp
168 if errorlevel 1 goto done
170 echo test sslv2/sslv3 with both client and server authentication
171 cerun CE:\OpenSSL\ssltest -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
172 if errorlevel 1 goto done
174 echo test sslv2 via BIO pair
175 cerun CE:\OpenSSL\ssltest -bio_pair -ssl2
176 if errorlevel 1 goto done
178 echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
179 cerun CE:\OpenSSL\ssltest -bio_pair -dhe1024dsa -v
180 if errorlevel 1 goto done
182 echo test sslv2 with server authentication via BIO pair
183 cerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -server_auth -CAfile \OpenSSL\cert.tmp
184 if errorlevel 1 goto done
186 echo test sslv2 with client authentication via BIO pair
187 cerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -client_auth -CAfile \OpenSSL\cert.tmp
188 if errorlevel 1 goto done
190 echo test sslv2 with both client and server authentication via BIO pair
191 cerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
192 if errorlevel 1 goto done
194 echo test sslv3 via BIO pair
195 cerun CE:\OpenSSL\ssltest -bio_pair -ssl3
196 if errorlevel 1 goto done
198 echo test sslv3 with server authentication via BIO pair
199 cerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -server_auth -CAfile \OpenSSL\cert.tmp
200 if errorlevel 1 goto done
202 echo test sslv3 with client authentication via BIO pair
203 cerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -client_auth -CAfile \OpenSSL\cert.tmp
204 if errorlevel 1 goto done
206 echo test sslv3 with both client and server authentication via BIO pair
207 cerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
208 if errorlevel 1 goto done
210 echo test sslv2/sslv3 via BIO pair
211 cerun CE:\OpenSSL\ssltest
212 if errorlevel 1 goto done
214 echo test sslv2/sslv3 with server authentication
215 cerun CE:\OpenSSL\ssltest -bio_pair -server_auth -CAfile \OpenSSL\cert.tmp
216 if errorlevel 1 goto done
218 echo test sslv2/sslv3 with client authentication via BIO pair
219 cerun CE:\OpenSSL\ssltest -bio_pair -client_auth -CAfile \OpenSSL\cert.tmp
220 if errorlevel 1 goto done
222 echo test sslv2/sslv3 with both client and server authentication via BIO pair
223 cerun CE:\OpenSSL\ssltest -bio_pair -server_auth -client_auth -CAfile \OpenSSL\cert.tmp
224 if errorlevel 1 goto done
228 echo passed all tests