2
0

test.bat 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. @echo off
  2. set test=..\ms
  3. set opath=%PATH%
  4. PATH=..\ms;%PATH%
  5. set OPENSSL_CONF=..\apps\openssl.cnf
  6. rem run this from inside the bin directory
  7. echo rsa_test
  8. rsa_test
  9. if errorlevel 1 goto done
  10. echo destest
  11. destest
  12. if errorlevel 1 goto done
  13. echo ideatest
  14. ideatest
  15. if errorlevel 1 goto done
  16. echo bftest
  17. bftest
  18. if errorlevel 1 goto done
  19. echo shatest
  20. shatest
  21. if errorlevel 1 goto done
  22. echo sha1test
  23. sha1test
  24. if errorlevel 1 goto done
  25. echo md5test
  26. md5test
  27. if errorlevel 1 goto done
  28. echo md2test
  29. md2test
  30. if errorlevel 1 goto done
  31. echo rc2test
  32. rc2test
  33. if errorlevel 1 goto done
  34. echo rc4test
  35. rc4test
  36. if errorlevel 1 goto done
  37. echo randtest
  38. randtest
  39. if errorlevel 1 goto done
  40. echo dhtest
  41. dhtest
  42. if errorlevel 1 goto done
  43. echo exptest
  44. exptest
  45. if errorlevel 1 goto done
  46. echo dsatest
  47. dsatest
  48. if errorlevel 1 goto done
  49. echo ectest
  50. ectest
  51. if errorlevel 1 goto done
  52. echo testenc
  53. call %test%\testenc openssl
  54. if errorlevel 1 goto done
  55. echo testpem
  56. call %test%\testpem openssl
  57. if errorlevel 1 goto done
  58. echo verify
  59. copy ..\certs\*.pem cert.tmp >nul
  60. openssl verify -CAfile cert.tmp ..\certs\*.pem
  61. echo testss
  62. call %test%\testss openssl
  63. if errorlevel 1 goto done
  64. set SSL_TEST=ssltest -key keyU.ss -cert certU.ss -c_key keyU.ss -c_cert certU.ss -CAfile certCA.ss
  65. echo test sslv2
  66. ssltest -ssl2
  67. if errorlevel 1 goto done
  68. echo test sslv2 with server authentication
  69. %SSL_TEST% -ssl2 -server_auth
  70. if errorlevel 1 goto done
  71. echo test sslv2 with client authentication
  72. %SSL_TEST% -ssl2 -client_auth
  73. if errorlevel 1 goto done
  74. echo test sslv2 with both client and server authentication
  75. %SSL_TEST% -ssl2 -server_auth -client_auth
  76. if errorlevel 1 goto done
  77. echo test sslv3
  78. ssltest -ssl3
  79. if errorlevel 1 goto done
  80. echo test sslv3 with server authentication
  81. %SSL_TEST% -ssl3 -server_auth
  82. if errorlevel 1 goto done
  83. echo test sslv3 with client authentication
  84. %SSL_TEST% -ssl3 -client_auth
  85. if errorlevel 1 goto done
  86. echo test sslv3 with both client and server authentication
  87. %SSL_TEST% -ssl3 -server_auth -client_auth
  88. if errorlevel 1 goto done
  89. echo test sslv2/sslv3
  90. ssltest
  91. if errorlevel 1 goto done
  92. echo test sslv2/sslv3 with server authentication
  93. %SSL_TEST% -server_auth
  94. if errorlevel 1 goto done
  95. echo test sslv2/sslv3 with client authentication
  96. %SSL_TEST% -client_auth
  97. if errorlevel 1 goto done
  98. echo test sslv2/sslv3 with both client and server authentication
  99. %SSL_TEST% -server_auth -client_auth
  100. if errorlevel 1 goto done
  101. echo test sslv2 via BIO pair
  102. ssltest -bio_pair -ssl2
  103. if errorlevel 1 goto done
  104. echo test sslv2/sslv3 with 1024 bit DHE via BIO pair
  105. ssltest -bio_pair -dhe1024dsa -v
  106. if errorlevel 1 goto done
  107. echo test sslv2 with server authentication via BIO pair
  108. %SSL_TEST% -bio_pair -ssl2 -server_auth
  109. if errorlevel 1 goto done
  110. echo test sslv2 with client authentication via BIO pair
  111. %SSL_TEST% -bio_pair -ssl2 -client_auth
  112. if errorlevel 1 goto done
  113. echo test sslv2 with both client and server authentication via BIO pair
  114. %SSL_TEST% -bio_pair -ssl2 -server_auth -client_auth
  115. if errorlevel 1 goto done
  116. echo test sslv3 via BIO pair
  117. ssltest -bio_pair -ssl3
  118. if errorlevel 1 goto done
  119. echo test sslv3 with server authentication via BIO pair
  120. %SSL_TEST% -bio_pair -ssl3 -server_auth
  121. if errorlevel 1 goto done
  122. echo test sslv3 with client authentication via BIO pair
  123. %SSL_TEST% -bio_pair -ssl3 -client_auth
  124. if errorlevel 1 goto done
  125. echo test sslv3 with both client and server authentication via BIO pair
  126. %SSL_TEST% -bio_pair -ssl3 -server_auth -client_auth
  127. if errorlevel 1 goto done
  128. echo test sslv2/sslv3 via BIO pair
  129. ssltest -bio_pair
  130. if errorlevel 1 goto done
  131. echo test sslv2/sslv3 with server authentication
  132. %SSL_TEST% -bio_pair -server_auth
  133. if errorlevel 1 goto done
  134. echo test sslv2/sslv3 with client authentication via BIO pair
  135. %SSL_TEST% -bio_pair -client_auth
  136. if errorlevel 1 goto done
  137. echo test sslv2/sslv3 with both client and server authentication via BIO pair
  138. %SSL_TEST% -bio_pair -server_auth -client_auth
  139. if errorlevel 1 goto done
  140. del cert.tmp
  141. echo passed all tests
  142. goto end
  143. :done
  144. echo problems.....
  145. :end
  146. PATH=%opath%