I have a number of folders each containing ~70 PowerShell scripts to be signed.
Signing is performed from a Windows .cmd script.
When signing one file by one everything works but takes quite a lot of time:
for %%f in (.\*.ps) do ( AzureSignTool sign <parameters> %%f)
In order to speed up signing, I have tried adding the script filenames to a text file and invoke the signing with -ifl .
Unfortunately this gives a mix of 'The file cannot be signed because it is not a recognized file type for signing or it is corrupt.' and 'Signing failed with error 800B0003.' and no files are signed.
Doing exactly the same with a mix of .exe and .dll works perfect (and fast):
I have a number of folders each containing ~70 PowerShell scripts to be signed. Signing is performed from a Windows .cmd script.
When signing one file by one everything works but takes quite a lot of time:
for %%f in (.\*.ps) do ( AzureSignTool sign <parameters> %%f)
In order to speed up signing, I have tried adding the script filenames to a text file and invoke the signing with -ifl.
Unfortunately this gives a mix of 'The file cannot be signed because it is not a recognized file type for signing or it is corrupt.' and 'Signing failed with error 800B0003.' and no files are signed.
Doing exactly the same with a mix of .exe and .dll works perfect (and fast):
`set tf=%tmp%!random!.txt
@echo.exe > %tf%
for %%f in (*.dll) do (
@echo %%f >> %tf%)
AzureSignTool sign <_parameters_> -ifl %tf% `