mirror of
https://github.com/mtrojnar/osslsigncode.git
synced 2025-04-16 13:08:06 -05:00
check libcurl availability
This commit is contained in:
parent
5b9f65d2f2
commit
98910f675a
@ -18,7 +18,7 @@ if [ -s "test.exe" ]
|
|||||||
fi
|
fi
|
||||||
rm -f "sha256sum_exe.log"
|
rm -f "sha256sum_exe.log"
|
||||||
else
|
else
|
||||||
skip=$($skip+1)
|
skip=$(($skip+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "test.ex_" ]
|
if [ -s "test.ex_" ]
|
||||||
@ -33,7 +33,7 @@ if [ -s "test.ex_" ]
|
|||||||
fi
|
fi
|
||||||
rm -f "sha256sum_ex_.log"
|
rm -f "sha256sum_ex_.log"
|
||||||
else
|
else
|
||||||
skip=$($skip+1)
|
skip=$(($skip+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ]
|
||||||
|
@ -7,7 +7,7 @@ script_path=$(pwd)
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="071. Sign a PE file with Authenticode timestamping"
|
test_name="071. Sign a PE file with Authenticode timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
@ -24,7 +24,7 @@ if [ -s "test.exe" ]
|
|||||||
# CAB file
|
# CAB file
|
||||||
test_name="072. Sign a CAB file with Authenticode timestamping"
|
test_name="072. Sign a CAB file with Authenticode timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.ex_" ]
|
if [ -s "test.ex_" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
@ -41,7 +41,7 @@ if [ -s "test.ex_" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="073. Sign a MSI file with Authenticode timestamping"
|
test_name="073. Sign a MSI file with Authenticode timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
|
@ -11,7 +11,7 @@ script_path=$(pwd)
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="081. Sign a PE file with RFC 3161 timestamping"
|
test_name="081. Sign a PE file with RFC 3161 timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
@ -28,7 +28,7 @@ if [ -s "test.exe" ]
|
|||||||
# CAB file
|
# CAB file
|
||||||
test_name="082. Sign a CAB file with RFC 3161 timestamping"
|
test_name="082. Sign a CAB file with RFC 3161 timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.ex_" ]
|
if [ -s "test.ex_" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
@ -45,7 +45,7 @@ if [ -s "test.ex_" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="083. Sign a MSI file with RFC 3161 timestamping"
|
test_name="083. Sign a MSI file with RFC 3161 timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
|
@ -19,7 +19,7 @@ if [ -s "test.exe" ]
|
|||||||
fi
|
fi
|
||||||
rm -f "sha256sum_exe.log"
|
rm -f "sha256sum_exe.log"
|
||||||
else
|
else
|
||||||
skip=$($skip+1)
|
skip=$(($skip+1))
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ]
|
||||||
|
@ -7,7 +7,7 @@ script_path=$(pwd)
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="371. Add an authenticode timestamp to the PE file"
|
test_name="371. Add an authenticode timestamp to the PE file"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
@ -29,7 +29,7 @@ if [ -s "test.exe" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="372. Add an authenticode timestamp to the MSI file"
|
test_name="372. Add an authenticode timestamp to the MSI file"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
|
@ -7,7 +7,7 @@ script_path=$(pwd)
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="381. Add RFC 3161 timestamp to signed PE file"
|
test_name="381. Add RFC 3161 timestamp to signed PE file"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
@ -29,7 +29,7 @@ if [ -s "test.exe" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="382. Add RFC 3161 timestamp to signed MSI file"
|
test_name="382. Add RFC 3161 timestamp to signed MSI file"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
|
@ -8,7 +8,7 @@ script_path=$(pwd)
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="461. Verify changed PE file after signing with Authenticode timestamping"
|
test_name="461. Verify changed PE file after signing with Authenticode timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
|
@ -8,7 +8,7 @@ script_path=$(pwd)
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="471. Verify changed PE file after signing with RFC 3161 timestamping"
|
test_name="471. Verify changed PE file after signing with RFC 3161 timestamping"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
../../osslsigncode sign -h sha256 \
|
../../osslsigncode sign -h sha256 \
|
||||||
-st "1556668800" \
|
-st "1556668800" \
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="521. Verify PE file signature with timestamping after the cert has been expired"
|
test_name="521. Verify PE file signature with timestamping after the cert has been expired"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
||||||
script_path=$(pwd)
|
script_path=$(pwd)
|
||||||
@ -27,7 +27,7 @@ if [ -s "test.exe" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="523. Verify MSI file signature with timestamping after the cert has been expired"
|
test_name="523. Verify MSI file signature with timestamping after the cert has been expired"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
||||||
script_path=$(pwd)
|
script_path=$(pwd)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="531. Verify PE file signature with RFC3161 after the cert has been expired"
|
test_name="531. Verify PE file signature with RFC3161 after the cert has been expired"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
||||||
script_path=$(pwd)
|
script_path=$(pwd)
|
||||||
@ -27,7 +27,7 @@ if [ -s "test.exe" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="533. Verify MSI file signature with RFC3161 after the cert has been expired"
|
test_name="533. Verify MSI file signature with RFC3161 after the cert has been expired"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
||||||
script_path=$(pwd)
|
script_path=$(pwd)
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
# PE file
|
# PE file
|
||||||
test_name="541. Verify PE file signed with the expired cert"
|
test_name="541. Verify PE file signed with the expired cert"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "test.exe" ]
|
if [ -s "test.exe" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
||||||
script_path=$(pwd)
|
script_path=$(pwd)
|
||||||
@ -27,7 +27,7 @@ if [ -s "test.exe" ]
|
|||||||
# MSI file
|
# MSI file
|
||||||
test_name="543. Verify MSI file signed with the expired cert"
|
test_name="543. Verify MSI file signed with the expired cert"
|
||||||
printf "\n%s\n" "$test_name"
|
printf "\n%s\n" "$test_name"
|
||||||
if [ -s "sample.msi" ]
|
if [ -s "sample.msi" ] && ! grep -q "no libcurl available" "results.log"
|
||||||
then
|
then
|
||||||
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
TZ=GMT faketime -f '@2019-05-01 00:00:00' /bin/bash -c '
|
||||||
script_path=$(pwd)
|
script_path=$(pwd)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user