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

442 Views Asked by At

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.

0

There are 0 best solutions below