Remove tests which rely on old root certs being present.
This commit is contained in:
parent
a523e997d3
commit
5f3878f1e3
385
ms/test.bat
385
ms/test.bat
@ -1,195 +1,190 @@
|
|||||||
@echo off
|
@echo off
|
||||||
|
|
||||||
set test=..\ms
|
set test=..\ms
|
||||||
set opath=%PATH%
|
set opath=%PATH%
|
||||||
PATH=..\ms;%PATH%
|
PATH=..\ms;%PATH%
|
||||||
set OPENSSL_CONF=..\apps\openssl.cnf
|
set OPENSSL_CONF=..\apps\openssl.cnf
|
||||||
|
|
||||||
rem run this from inside the bin directory
|
rem run this from inside the bin directory
|
||||||
|
|
||||||
echo rsa_test
|
echo rsa_test
|
||||||
rsa_test
|
rsa_test
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo destest
|
echo destest
|
||||||
destest
|
destest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo ideatest
|
echo ideatest
|
||||||
ideatest
|
ideatest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo bftest
|
echo bftest
|
||||||
bftest
|
bftest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo shatest
|
echo shatest
|
||||||
shatest
|
shatest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo sha1test
|
echo sha1test
|
||||||
sha1test
|
sha1test
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo md5test
|
echo md5test
|
||||||
md5test
|
md5test
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo md2test
|
echo md2test
|
||||||
md2test
|
md2test
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo rc2test
|
echo rc2test
|
||||||
rc2test
|
rc2test
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo rc4test
|
echo rc4test
|
||||||
rc4test
|
rc4test
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo randtest
|
echo randtest
|
||||||
randtest
|
randtest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo dhtest
|
echo dhtest
|
||||||
dhtest
|
dhtest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo exptest
|
echo exptest
|
||||||
exptest
|
exptest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo dsatest
|
echo dsatest
|
||||||
dsatest
|
dsatest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo ectest
|
echo ectest
|
||||||
ectest
|
ectest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo testenc
|
echo testenc
|
||||||
call %test%\testenc openssl
|
call %test%\testenc openssl
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo testpem
|
echo testpem
|
||||||
call %test%\testpem openssl
|
call %test%\testpem openssl
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo verify
|
echo testss
|
||||||
copy ..\certs\*.pem cert.tmp >nul
|
call %test%\testss openssl
|
||||||
openssl verify -CAfile cert.tmp ..\certs\*.pem
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo testss
|
set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss
|
||||||
call %test%\testss openssl
|
|
||||||
if errorlevel 1 goto done
|
echo test sslv2
|
||||||
|
ssltest -ssl2
|
||||||
set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2
|
echo test sslv2 with server authentication
|
||||||
ssltest -ssl2
|
%SSL_TEST% -ssl2 -server_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 with server authentication
|
echo test sslv2 with client authentication
|
||||||
%SSL_TEST% -ssl2 -server_auth
|
%SSL_TEST% -ssl2 -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 with client authentication
|
echo test sslv2 with both client and server authentication
|
||||||
%SSL_TEST% -ssl2 -client_auth
|
%SSL_TEST% -ssl2 -server_auth -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 with both client and server authentication
|
echo test sslv3
|
||||||
%SSL_TEST% -ssl2 -server_auth -client_auth
|
ssltest -ssl3
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3
|
echo test sslv3 with server authentication
|
||||||
ssltest -ssl3
|
%SSL_TEST% -ssl3 -server_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 with server authentication
|
echo test sslv3 with client authentication
|
||||||
%SSL_TEST% -ssl3 -server_auth
|
%SSL_TEST% -ssl3 -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 with client authentication
|
echo test sslv3 with both client and server authentication
|
||||||
%SSL_TEST% -ssl3 -client_auth
|
%SSL_TEST% -ssl3 -server_auth -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 with both client and server authentication
|
echo test sslv2/sslv3
|
||||||
%SSL_TEST% -ssl3 -server_auth -client_auth
|
ssltest
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3
|
echo test sslv2/sslv3 with server authentication
|
||||||
ssltest
|
%SSL_TEST% -server_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with server authentication
|
echo test sslv2/sslv3 with client authentication
|
||||||
%SSL_TEST% -server_auth
|
%SSL_TEST% -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with client authentication
|
echo test sslv2/sslv3 with both client and server authentication
|
||||||
%SSL_TEST% -client_auth
|
%SSL_TEST% -server_auth -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with both client and server authentication
|
echo test sslv2 via BIO pair
|
||||||
%SSL_TEST% -server_auth -client_auth
|
ssltest -bio_pair -ssl2
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 via BIO pair
|
echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
|
||||||
ssltest -bio_pair -ssl2
|
ssltest -bio_pair -dhe1024dsa -v
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
|
echo test sslv2 with server authentication via BIO pair
|
||||||
ssltest -bio_pair -dhe1024dsa -v
|
%SSL_TEST% -bio_pair -ssl2 -server_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 with server authentication via BIO pair
|
echo test sslv2 with client authentication via BIO pair
|
||||||
%SSL_TEST% -bio_pair -ssl2 -server_auth
|
%SSL_TEST% -bio_pair -ssl2 -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 with client authentication via BIO pair
|
echo test sslv2 with both client and server authentication via BIO pair
|
||||||
%SSL_TEST% -bio_pair -ssl2 -client_auth
|
%SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2 with both client and server authentication via BIO pair
|
echo test sslv3 via BIO pair
|
||||||
%SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth
|
ssltest -bio_pair -ssl3
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 via BIO pair
|
echo test sslv3 with server authentication via BIO pair
|
||||||
ssltest -bio_pair -ssl3
|
%SSL_TEST% -bio_pair -ssl3 -server_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 with server authentication via BIO pair
|
echo test sslv3 with client authentication via BIO pair
|
||||||
%SSL_TEST% -bio_pair -ssl3 -server_auth
|
%SSL_TEST% -bio_pair -ssl3 -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 with client authentication via BIO pair
|
echo test sslv3 with both client and server authentication via BIO pair
|
||||||
%SSL_TEST% -bio_pair -ssl3 -client_auth
|
%SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv3 with both client and server authentication via BIO pair
|
echo test sslv2/sslv3 via BIO pair
|
||||||
%SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth
|
ssltest -bio_pair
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 via BIO pair
|
echo test sslv2/sslv3 with server authentication
|
||||||
ssltest -bio_pair
|
%SSL_TEST% -bio_pair -server_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with server authentication
|
echo test sslv2/sslv3 with client authentication via BIO pair
|
||||||
%SSL_TEST% -bio_pair -server_auth
|
%SSL_TEST% -bio_pair -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with client authentication via BIO pair
|
echo test sslv2/sslv3 with both client and server authentication via BIO pair
|
||||||
%SSL_TEST% -bio_pair -client_auth
|
%SSL_TEST% -bio_pair -server_auth -client_auth
|
||||||
if errorlevel 1 goto done
|
if errorlevel 1 goto done
|
||||||
|
|
||||||
echo test sslv2/sslv3 with both client and server authentication via BIO pair
|
|
||||||
%SSL_TEST% -bio_pair -server_auth -client_auth
|
echo passed all tests
|
||||||
if errorlevel 1 goto done
|
goto end
|
||||||
|
:done
|
||||||
del cert.tmp
|
echo problems.....
|
||||||
|
:end
|
||||||
echo passed all tests
|
PATH=%opath%
|
||||||
goto end
|
|
||||||
:done
|
|
||||||
echo problems.....
|
|
||||||
:end
|
|
||||||
PATH=%opath%
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user