Kentor AuthServices - serviceCertificates for SP (.pfx with password protected) throwing network password error

北城余情 提交于 2019-12-11 13:16:42

问题


Error: The specified network password is not correct.

Description: An un handled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: The specified network password is not correct.

Reason: I can only export certificate '.pfx' with the password protected. "Kentor AuthServices" doesn't support password protected as I understand..

It is said that this issue is closed as per below link https://github.com/KentorIT/authservices/issues/457

.Net error: it is because of 'X509KeyStorageFlags.MachineKeySet' flag set..

All I did was saved the .pfx file in my solution and pointed the server certificate file path to it. Do I need to do anything else to pass through the error?

Your help is greatly appreciated.


回答1:


When you export the .pfx file in the certificate manager you are prompted for a password, but you can leave it blank and press ok to generate a pfx without passwords.

Having a pfx is a simple approach in test/dev environments where including the pfx in the source lets everyone just get the source and run. That's why I'm doing that for the sample applications in the repository.

But in a production environment the certificates should always be stored securely in the certificate store of the operating system. Never use a pfx file in production. The certificate configuration allows you to specify a certificate store instead of a file name. See the configuration documentation



来源:https://stackoverflow.com/questions/37577159/kentor-authservices-servicecertificates-for-sp-pfx-with-password-protected

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