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:

enter image description here

i wrote password : 'fess'

new window opened:

enter image description here

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:

enter image description here

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:


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -