📄 testce.bat
字号:
@echo offcemkdir CE:\OpenSSLset test=..\msset opath=%PATH%PATH=..\ms;%PATH%cecopy ..\apps\openssl.cnf CE:\OpenSSLset OPENSSL_CONF=\OpenSSL\openssl.cnfset HOME=\OpenSSLset CERUN_PASS_ENV=OPENSSL_CONF HOMErem run this from inside the bin directoryrem Copy the DLL's (though they'll only exist if we're in out32dll)if exist libeay32.dll cecopy libeay32.dll CE:\OpenSSLif exist ssleay32.dll cecopy ssleay32.dll CE:\OpenSSLecho rsa_testcall %test%\testce2 rsa_testif errorlevel 1 goto doneecho destestcall %test%\testce2 destestif errorlevel 1 goto doneecho ideatestcall %test%\testce2 ideatestif errorlevel 1 goto doneecho bftestcall %test%\testce2 bftestif errorlevel 1 goto doneecho shatestcall %test%\testce2 shatestif errorlevel 1 goto doneecho sha1testcall %test%\testce2 sha1testif errorlevel 1 goto doneecho md5testcall %test%\testce2 md5testif errorlevel 1 goto doneecho md2testcall %test%\testce2 md2testif errorlevel 1 goto doneecho mdc2testcall %test%\testce2 mdc2testif errorlevel 1 goto doneecho rc2testcall %test%\testce2 rc2testif errorlevel 1 goto doneecho rc4testcall %test%\testce2 rc4testif errorlevel 1 goto doneecho randtestcall %test%\testce2 randtestif errorlevel 1 goto doneecho dhtestcall %test%\testce2 dhtestif errorlevel 1 goto doneecho exptestcall %test%\testce2 exptestif errorlevel 1 goto doneecho dsatestcall %test%\testce2 dsatestif errorlevel 1 goto doneecho testenccall %test%\testencce openssl.exeif errorlevel 1 goto doneecho testpemcall %test%\testpemce openssl.exeif errorlevel 1 goto donececopy openssl.exe CE:\OpenSSLecho verifycopy ..\certs\*.pem cert.tmp >nulcecopy cert.tmp CE:\OpenSSLcemkdir CE:\OpenSSL\certsrem cecopy ..\certs\*.pem CE:\OpenSSL\certscecopy ..\certs\ca-cert.pem CE:\OpenSSL\certscecopy ..\certs\dsa-ca.pem CE:\OpenSSL\certscecopy ..\certs\dsa-pca.pem CE:\OpenSSL\certscecopy ..\certs\factory.pem CE:\OpenSSL\certscecopy ..\certs\ICE-CA.pem CE:\OpenSSL\certscecopy ..\certs\ICE-root.pem CE:\OpenSSL\certscecopy ..\certs\ICE-user.pem CE:\OpenSSL\certscecopy ..\certs\nortelCA.pem CE:\OpenSSL\certscecopy ..\certs\pca-cert.pem CE:\OpenSSL\certscecopy ..\certs\RegTP-4R.pem CE:\OpenSSL\certscecopy ..\certs\RegTP-5R.pem CE:\OpenSSL\certscecopy ..\certs\RegTP-6R.pem CE:\OpenSSL\certscecopy ..\certs\rsa-cca.pem CE:\OpenSSL\certscecopy ..\certs\thawteCb.pem CE:\OpenSSL\certscecopy ..\certs\thawteCp.pem CE:\OpenSSL\certscecopy ..\certs\timCA.pem CE:\OpenSSL\certscecopy ..\certs\tjhCA.pem CE:\OpenSSL\certscecopy ..\certs\vsign1.pem CE:\OpenSSL\certscecopy ..\certs\vsign2.pem CE:\OpenSSL\certscecopy ..\certs\vsign3.pem CE:\OpenSSL\certscecopy ..\certs\vsignss.pem CE:\OpenSSL\certscecopy ..\certs\vsigntca.pem CE:\OpenSSL\certscerun CE:\OpenSSL\openssl verify -CAfile \OpenSSL\cert.tmp \OpenSSL\certs\*.pemecho testsscall %test%\testssce openssl.exeif errorlevel 1 goto donececopy ssltest.exe CE:\OpenSSLcecopy ..\apps\server.pem CE:\OpenSSLcecopy ..\apps\client.pem CE:\OpenSSLecho test sslv2cerun CE:\OpenSSL\ssltest -ssl2if errorlevel 1 goto doneecho test sslv2 with server authenticationcerun CE:\OpenSSL\ssltest -ssl2 -server_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2 with client authenticationcerun CE:\OpenSSL\ssltest -ssl2 -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2 with both client and server authenticationcerun CE:\OpenSSL\ssltest -ssl2 -server_auth -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv3cerun CE:\OpenSSL\ssltest -ssl3if errorlevel 1 goto doneecho test sslv3 with server authenticationcerun CE:\OpenSSL\ssltest -ssl3 -server_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv3 with client authenticationcerun CE:\OpenSSL\ssltest -ssl3 -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv3 with both client and server authenticationcerun CE:\OpenSSL\ssltest -ssl3 -server_auth -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2/sslv3cerun CE:\OpenSSL\ssltestif errorlevel 1 goto doneecho test sslv2/sslv3 with server authenticationcerun CE:\OpenSSL\ssltest -server_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2/sslv3 with client authenticationcerun CE:\OpenSSL\ssltest -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2/sslv3 with both client and server authenticationcerun CE:\OpenSSL\ssltest -server_auth -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2 via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl2if errorlevel 1 goto doneecho test sslv2/sslv3 with 1024 bit DHE via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -dhe1024dsa -vif errorlevel 1 goto doneecho test sslv2 with server authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -server_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2 with client authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2 with both client and server authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl2 -server_auth -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv3 via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl3if errorlevel 1 goto doneecho test sslv3 with server authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -server_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv3 with client authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv3 with both client and server authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -ssl3 -server_auth -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2/sslv3 via BIO paircerun CE:\OpenSSL\ssltestif errorlevel 1 goto doneecho test sslv2/sslv3 with server authenticationcerun CE:\OpenSSL\ssltest -bio_pair -server_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2/sslv3 with client authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto doneecho test sslv2/sslv3 with both client and server authentication via BIO paircerun CE:\OpenSSL\ssltest -bio_pair -server_auth -client_auth -CAfile \OpenSSL\cert.tmpif errorlevel 1 goto donedel cert.tmpecho passed all testsgoto end:doneecho problems.....:endPATH=%opath%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -