mtrojnar / osslsigncode

OpenSSL based Authenticode signing for PE/MSI/Java CAB files
Other
806 stars 131 forks source link

ctest failures of (sign|verify)_ts* tests #334

Closed crunk1 closed 9 months ago

crunk1 commented 11 months ago

Hi there and first and foremost, thank you for this tool!

I'm running into ctest failures when installing from AUR (https://aur.archlinux.org/packages/osslsigncode) and when building from source. I obsessively update my system, so maybe some library had a backwards-incompatible update? Or maybe I'm missing some dependency that the AUR package doesn't list? I'd be happy to provide any information, just let me know what I need to look up!

Failures:

    113 - sign_ts_cert_exe (Failed)
    114 - sign_ts_expired_exe (Failed)
    115 - sign_ts_revoked_exe (Failed)
    116 - sign_ts_cert_crldp_exe (Failed)
    117 - sign_ts_revoked_crldp_exe (Failed)
    118 - sign_ts_cert_ex_ (Failed)
    119 - sign_ts_expired_ex_ (Failed)
    120 - sign_ts_revoked_ex_ (Failed)
    121 - sign_ts_cert_crldp_ex_ (Failed)
    122 - sign_ts_revoked_crldp_ex_ (Failed)
    123 - sign_ts_cert_msi (Failed)
    124 - sign_ts_expired_msi (Failed)
    125 - sign_ts_revoked_msi (Failed)
    126 - sign_ts_cert_crldp_msi (Failed)
    127 - sign_ts_revoked_crldp_msi (Failed)
    128 - sign_ts_cert_256appx (Failed)
    129 - sign_ts_expired_256appx (Failed)
    130 - sign_ts_revoked_256appx (Failed)
    131 - sign_ts_cert_crldp_256appx (Failed)
    132 - sign_ts_revoked_crldp_256appx (Failed)
    133 - sign_ts_cert_512appx (Failed)
    134 - sign_ts_expired_512appx (Failed)
    135 - sign_ts_revoked_512appx (Failed)
    136 - sign_ts_cert_crldp_512appx (Failed)
    137 - sign_ts_revoked_crldp_512appx (Failed)
    138 - sign_ts_cert_cat (Failed)
    139 - sign_ts_expired_cat (Failed)
    140 - sign_ts_revoked_cat (Failed)
    141 - sign_ts_cert_crldp_cat (Failed)
    142 - sign_ts_revoked_crldp_cat (Failed)
    143 - verify_ts_cert_exe (Failed)
    144 - verify_ts_cert_ex_ (Failed)
    145 - verify_ts_cert_msi (Failed)
    146 - verify_ts_cert_256appx (Failed)
    147 - verify_ts_cert_512appx (Failed)
    148 - verify_ts_cert_cat (Failed)
    149 - verify_ts_future_exe (Failed)
    150 - verify_ts_future_ex_ (Failed)
    151 - verify_ts_future_msi (Failed)
    152 - verify_ts_future_256appx (Failed)
    153 - verify_ts_future_512appx (Failed)
    154 - verify_ts_future_cat (Failed)
    161 - verify_ts_cert_crldp_exe (Failed)
    162 - verify_ts_cert_crldp_ex_ (Failed)
    163 - verify_ts_cert_crldp_msi (Failed)
    164 - verify_ts_cert_crldp_256appx (Failed)
    165 - verify_ts_cert_crldp_512appx (Failed)
    166 - verify_ts_cert_crldp_cat (Failed)
olszomal commented 10 months ago

ctest requires python3 and libfaketime packages. (sign|verify)_ts* tests needs a built-in HTTP server.

$ mkdir build && cd build && cmake -S ..
...
-- Found Python3: /usr/bin/python3.11 (found version "3.11.6") found components: Interpreter 
-- HTTP server started, URL http://127.0.0.1:39483
-- Keys & certificates successfully generated
...

stop_server test shuts down this server. If you want to reuse ctest you can use optional CMake parameter -DSTOP_SERVER=OFF or use cmake to configure the osslsigncode project again:

$ cmake -S ..
-- Using bash completions dir /usr/share/bash-completion/completions
-- cURL support enabled
-- HTTP server started, URL http://127.0.0.1:41861
-- Keys & certificates successfully generated
-- Configuring done (3.4s)
-- Generating done (0.1s)
-- Build files have been written to: /home/mo/osslsigncode/build
patatetom commented 10 months ago

have a look here...

crunk1 commented 10 months ago

@olszomal I'm running python 3.12.1 and I pip installed libfaketime. I'm still getting test failures.