Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • pbl_dk 149 posts 550 karma points
    Oct 07, 2017 @ 12:45
    pbl_dk
    0

    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?

  • John Bergman 483 posts 1132 karma points
    Oct 07, 2017 @ 18:56
    John Bergman
    100

    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

  • pbl_dk 149 posts 550 karma points
    Oct 07, 2017 @ 20:40
    pbl_dk
    0

    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.

  • John Bergman 483 posts 1132 karma points
    Oct 09, 2017 @ 00:09
    John Bergman
    1

    Correct. Without none of the encrypted data in the database can be used.

Please Sign in or register to post replies

Write your reply to:

Draft