title: How to store machine key in .NET Core for encrypting / decrypting auth cookie
body: <p>I have an MVC5 app which is acting as a single sign on portal by creating a cookie which can be read by other MVC apps. This works fine because I have aligned the machine keys and set the cookie domain.</p>
  
  <p>I now need to add in a .NET Core app which needs to be able to read the auth cookie too.</p>
  
  <p>I understand that the machine key is no longer stored in the web config in .NET Core apps, and instead are stored in a directory on the file system.</p>
  
  <p>I followed Microsoft's tutorial on how to do this, but it doesn't seem to explain how the keys should be stored.</p>
  
  <p>Does anybody know how to actually store the machine key value so that the DataProtectionProvider can access it?</p>
  
  <p>Thanks</p>