The machine key works with the cryptography libraries, at least on a fresh install, it adds an element to the web.config inside system.web that contains the encryption and decryption keys and algorithm.
This makes the cryptography portable, and is particularly important if you run either a multi-server farm or multiple environments.
So to understand this right. If I have a development database, which I copy directly to live-server during production, I need to copy the IIS key from the development to the live-server or else login wont work?..
I am just trying to understand the use of the key. :-)
Machine Key - how?
Hi there folks. In the new 7.7.2 install, theres a new function with machine key.
I am not sure how I use this.
Do I need the same machine key on the two different IIS's if I publish the dev-database to my production site?
I found this on Microsoft support: https://blogs.msdn.microsoft.com/amb/2012/07/31/easiest-way-to-generate-machinekey/
When would I need a custom key?
The machine key works with the cryptography libraries, at least on a fresh install, it adds an element to the web.config inside system.web that contains the encryption and decryption keys and algorithm.
This makes the cryptography portable, and is particularly important if you run either a multi-server farm or multiple environments.
https://stackoverflow.com/questions/3855666/adding-machinekey-to-web-config-on-web-farm-sites
Hey John, thanks for the answer, helps a bit.
So to understand this right. If I have a development database, which I copy directly to live-server during production, I need to copy the IIS key from the development to the live-server or else login wont work?.. I am just trying to understand the use of the key. :-)
thanks for answering.
Correct. Without none of the encrypted data in the database can be used.
is working on a reply...