diff options
author | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-07-05 13:30:54 +0900 |
---|---|---|
committer | kinichiro <kinichiro.inoguchi@gmail.com> | 2020-07-05 13:30:54 +0900 |
commit | f9e7ce5ed235929a96761afdf8ffc88c46de3a80 (patch) | |
tree | f03286181220bbe19104252a45a6f4d469304aeb /tests | |
parent | fd208a54936fd8212e91e71a54c1d48b14b37156 (diff) | |
download | portable-f9e7ce5ed235929a96761afdf8ffc88c46de3a80.tar.gz portable-f9e7ce5ed235929a96761afdf8ffc88c46de3a80.tar.bz2 portable-f9e7ce5ed235929a96761afdf8ffc88c46de3a80.zip |
Test both SSLv3 and TLSv1.2, select cipher suite that the protocol can handle
Follow upstream r1.12 and r1.13
- Test both SSLv3 and TLSv1.2 cipher suites with TLS.
- Handle the fact that TLSv1.3 cipher suites are now being included in the
output from `openssl ciphers`
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testssl.bat | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/testssl.bat b/tests/testssl.bat index dbc162a..1a55f76 100644 --- a/tests/testssl.bat +++ b/tests/testssl.bat | |||
@@ -56,9 +56,9 @@ echo test sslv2/sslv3 with both client and server authentication via BIO pair an | |||
56 | %ssltest% -bio_pair -server_auth -client_auth -app_verify %CA% %extra% & if !errorlevel! neq 0 exit /b 1 | 56 | %ssltest% -bio_pair -server_auth -client_auth -app_verify %CA% %extra% & if !errorlevel! neq 0 exit /b 1 |
57 | 57 | ||
58 | echo "Testing ciphersuites" | 58 | echo "Testing ciphersuites" |
59 | for %%p in ( TLSv1.2 ) do ( | 59 | for %%p in ( SSLv3,TLSv1.2 ) do ( |
60 | echo "Testing ciphersuites for %%p" | 60 | echo "Testing ciphersuites for %%p" |
61 | for /f "usebackq" %%c in (`%openssl% ciphers -v "%%p+aRSA"`) do ( | 61 | for /f "usebackq" %%c in (`%openssl% ciphers -v "%%p+aRSA" ^| find "%%p"`) do ( |
62 | echo "Testing %%c" | 62 | echo "Testing %%c" |
63 | %ssltest% -cipher %%c | 63 | %ssltest% -cipher %%c |
64 | if !errorlevel! neq 0 ( | 64 | if !errorlevel! neq 0 ( |
@@ -113,7 +113,7 @@ echo test dtlsv1 with both client and server authentication | |||
113 | echo "Testing DTLS ciphersuites" | 113 | echo "Testing DTLS ciphersuites" |
114 | for %%p in ( SSLv3 ) do ( | 114 | for %%p in ( SSLv3 ) do ( |
115 | echo "Testing ciphersuites for %%p" | 115 | echo "Testing ciphersuites for %%p" |
116 | for /f "usebackq" %%c in (`%openssl% ciphers -v "RSA+%%p:-RC4"`) do ( | 116 | for /f "usebackq" %%c in (`%openssl% ciphers -v "RSA+%%p:-RC4" ^| find "%%p"`) do ( |
117 | echo "Testing %%c" | 117 | echo "Testing %%c" |
118 | %ssltest% -cipher %%c -dtls1 | 118 | %ssltest% -cipher %%c -dtls1 |
119 | if !errorlevel! neq 0 ( | 119 | if !errorlevel! neq 0 ( |