diff options
Diffstat (limited to 'tests/testssl.bat')
-rw-r--r-- | tests/testssl.bat | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testssl.bat b/tests/testssl.bat index 1a55f76..0664eb0 100644 --- a/tests/testssl.bat +++ b/tests/testssl.bat | |||
@@ -11,7 +11,10 @@ set extra=%6 | |||
11 | 11 | ||
12 | %openssl% version & if !errorlevel! neq 0 exit /b 1 | 12 | %openssl% version & if !errorlevel! neq 0 exit /b 1 |
13 | 13 | ||
14 | for /f "usebackq" %%s in (`%openssl% x509 -in %cert% -text -noout ^| find /c "DSA Public Key"`) do set lines=%%s | 14 | set lines=0 |
15 | for /f "usebackq" %%s in (`%openssl% x509 -in %cert% -text -noout ^| find "DSA Public Key"`) do ( | ||
16 | set /a lines=%lines%+1 | ||
17 | ) | ||
15 | if %lines% gtr 0 ( | 18 | if %lines% gtr 0 ( |
16 | set dsa_cert=YES | 19 | set dsa_cert=YES |
17 | ) else ( | 20 | ) else ( |