PDA

View Full Version : SigningHelper: error 0x80070057 while attempting to sign file



tobrin
08-24-2016, 06:43 AM
I have just upgraded to Installshield 2016 from 2014 and now i got this error in the build log when i try to sign my output files. What could be the reason to this?

SigningHelper: error 0x80070057 while attempting to sign file

joshstechnij
08-24-2016, 12:42 PM
Were you using a PFX or SPC/PVK certificate in IS 2014? IS 2015 and newer no longer support SPC/PVK certificates. These can be converted to PFX style certs if needed.

If you are using a PFX, what are the settings listed in your release on the Signing tab in the Releases view? Error 0x80070057 indicates an invalid parameter, so these settings could be an issue.

tobrin
08-25-2016, 01:11 AM
Were you using a PFX or SPC/PVK certificate in IS 2014? IS 2015 and newer no longer support SPC/PVK certificates. These can be converted to PFX style certs if needed.

If you are using a PFX, what are the settings listed in your release on the Signing tab in the Releases view? Error 0x80070057 indicates an invalid parameter, so these settings could be an issue.

My settings are as follows:

Certificate URL: http://www.tbd.com
Digital Certificate Information: File: <PATH_TO_CODE_SIGNING_CE_FILES>\authenticode.pfx, Digest Selection: Based on certificate hash
Password: ********
Sign Output Files: Setup.exe and Windows Installer Package
Signature Description:
Sign Files in Package : No


The password contains underscores, hashtags and alphanumerics ( If i change it i get the correct error 0x80070056 (invalid password) instead. )

tobrin
08-25-2016, 08:24 AM
Were you using a PFX or SPC/PVK certificate in IS 2014? IS 2015 and newer no longer support SPC/PVK certificates. These can be converted to PFX style certs if needed.

If you are using a PFX, what are the settings listed in your release on the Signing tab in the Releases view? Error 0x80070057 indicates an invalid parameter, so these settings could be an issue.


My settings are as follows:

Certificate URL: http://www.tbd.com
Digital Certificate Information: File <PATH_TO_CODE_SIGNING_CE_FILES>\authenticode.pfx, Digest Selection: Based on certificate hash
Certificate Password : ***********
Sign output Files: Setup.exe and Windows Installer Package.
Signature Description :
Sign Files in Package : No

tobrin
08-26-2016, 12:53 AM
My settings are as follows:

Certificate URL: http://tdb.com
Digital Certificate Information : File <PATH_TO_CODE_SIGNING_CE_FILES>\authenticode.pfx, Digest Selection: Based on certificate hash
Certificate Passweord: *********
Sign Output Files: Setup.exe and Windows Installer Package.
Signature Description:
Sign Files in package: No

If i try to change the password i get the correct password error ( 0x80070056 )

joshstechnij
08-26-2016, 02:33 PM
These settings all appear to be valid (assuming the .pfx exists, but that shouldn't be the issue since you can produce an invalid password error).

Can you check the following:
- Are there any -1027 build errors or warnings after the 0x80070057 message? If it is a -1027 warning, this indicates the file in question was signed but didn't timestamp correctly. Do your setup.exe or .msi files have digital signatures but no timestamps?
- As a test, create a new network image release (default settings) and configure the signing settings as you have on your existing release. Does this release sign and timestamp the setup.exe and .msi files?
- If the above test fails, try creating a new project, add one feature, one component, and one file. Create a release in the project that includes your existing signature settings then build the release.

Based on the above, this could help isolate if this is a signing problem, a timestamping problem, or some other issue. Please let us know the outcome of the above tests.

tobrin
08-29-2016, 01:42 AM
Ok i understand. The error was just a warning...

I can see that my files are signed without timestamps just as i wanted.

Thank you for your assistance.