Problem with TemporaryKey.pfx I don't have the password

﹥>﹥吖頭↗ 提交于 2019-12-04 16:09:31

问题


A client of mine has a problem. He had a Microsoft CRM developper and he left. Now the project remains uncomplete. I've downloaded the source code of the custom applications and I'm not trying to continue the development. I've tried the ClickOne deployment and it pops me with a password input box related to the myapp_TemporaryKey.pfx. I've tried to install on a computer on the network and launch in debugging mode, and I get the same problem, it says :

"Cannot import the following key file: . The key file may be password protected. To correct this, try to import the certificate again or import the certificate manually into the current user's personal certificate store."

And a second error is: "Importing key file "myapp_TemporaryKey.pfx" was canceled

Do you know what can be done to fix that? I have the .PFX file, but not the password.


回答1:


I went to Project Properties --> Signing tab--> then signed my app using the certificate in the ClickOnce section. In my case, the build was successful.




回答2:


If PFX is password-protected, you can do little about this if you don't have a password. PFX contains a certificate with corresponding private key and optionally one or more CA certificates. Was the certificate in question self-signed or it was issued by some CA? I guess it was self-signed, considering it's file name. So you just create another certificate and use it instead of the old file.



来源:https://stackoverflow.com/questions/3842481/problem-with-temporarykey-pfx-i-dont-have-the-password

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!