ClickOnce signer's certificate not valid for signing when using makecert/pvk2pfx

后端 未结 3 529
予麋鹿
予麋鹿 2020-12-28 21:44

All of a sudden my unexpired certificate created using makecert/pvk2pfx is throwing an error when attempting to publish a ClickOnce application. This worked

3条回答
  •  醉话见心
    2020-12-28 22:32

    After using the -r switch (create a self signed certificate) with Makecert, the pfx certificate generated with pvk2pfx now works for ClickOnce publishing... I am not sure exactly what happened here since the old key that was not "self signed" worked fine for a long time...

    Exact commands I used to create the working pfx certificate...

    makecert -sv MyApp.pvk -n "CN=MyCompany" MyApp.cer -r
    
    pvk2pfx -pvk MyApp.pvk -spc MyApp.cer -pfx MyApp.pfx
    

提交回复
热议问题