Why I get "The specified PFX password is not correct" when trying to sign application with signtool? -
i followed link sign exe application.
i installed sdk tool on windows 7,
run
c:\program files\microsoft sdks\windows\v6.1\bin>makecert.exe -sv app-o.pvk -n "cn=my digital key" app-o.cer
dialog opened provide password:
i wrote password : 'fess'
new window opened:
i entered: 'fess'
#succeeded
files app-o.cer , app-o.pvk creaded.
now generate pfx:
pvk2pfx.exe -pvk app-o.pvk -spc app-o.cer -pfx app-o.pfx
dialog opened provide password:
i pasted 'fess'
file pfx created.
now run signtool:
c:\program files\microsoft sdks\windows\v6.1\bin>signtool.exe sign /f "app-o.pfx" /p fess "c:\output\setup.exe"
here got error:
signtool error: specified pfx password not correct. number of files signed: 0 number of warnings: 0 number of errors: 1
what did miss?
btw, same error cmd shell of windows sdk.
thanks,
there couple of problems.
first of using self-signed certificate, should define explicitly adding -r key makecert command or you'll error "the signer's certificate not valid signing" @ sign step.
next, @ step
signtool.exe sign /f "app-o.pfx" /p fess "c:\output\setup.exe"
you trying open pfx using password "fess". didn't set password pfx file. should add -po key pfx creation command.
after can sign application.
so correct process be:
makecert.exe -sv app-o.pvk -n "cn=my digital key" app-o.cer -r pvk2pfx.exe -pvk app-o.pvk -spc app-o.cer -pfx app-o.pfx -po fess signtool.exe sign /f "app-o.pfx" /p fess "c:\output\setup.exe"
here useful links:
- how create certificate: http://msdn.microsoft.com/en-us/library/ff699202.aspx
- pvk2pfx command keys: http://msdn.microsoft.com/en-us/library/windows/hardware/ff550672%28v=vs.85%29.aspx
- signtool command keys: http://msdn.microsoft.com/en-us/library/windows/desktop/aa387764%28v=vs.85%29.aspx
- how sign file: http://msdn.microsoft.com/en-us/library/windows/desktop/aa388170%28v=vs.85%29.aspx
Comments
Post a Comment