How do I move a AutoGenerate,IsolateApps machine key system onto a load balanced server?

痴心易碎 提交于 2020-01-15 09:22:50

问题


I just found, web.config with below settings in all the environments including prod.

<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" validation="SHA1"
                    decryption="Auto" />

Now, application is going to start using with load balancing. Would it create problem as its not using static machine keys ?

If I change this key now to static validaitnKey and static decrptionKey then it creates another problem for already protected keys unable to decrypt.

MachineKey.Protect(streamarray,purpose);
MachineKey.Unprotect(string,purpose);

Can you please suggest, what can be done for existing protected keys and still, I can use load balancing.

来源:https://stackoverflow.com/questions/50607115/how-do-i-move-a-autogenerate-isolateapps-machine-key-system-onto-a-load-balanced

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