title: Exporting RSA containers key container across domain
body: <p>I need to create a RSA container, export it and use it on a private machine and and on a machine that is part of a domain.</p>
  
  <p>Why  - encrypting web.config file of my ASP.NET app, so that I am able to run it on these machines. Solution to this would be to just not share the web.config file, encrypt them on each o the machines separately, but that would lead to duplicity and every downside that comes with that.</p>
  
  <p>I was following <a href="https://docs.microsoft.com/en-us/previous-versions/aspnet/2w117ede(v=vs.100)" rel="nofollow noreferrer">this</a> walkthrough. And got stuck at adding access rights to the key.</p>
  
  <p>My question is: Is this even possible? </p>
  
  <p>I was thinking of something like creating the key on the domain machine and than using a VPN/"run program as" to run it as the domain user. While trying this, I ran into some issues, but I did not give it enough time.</p>
  
  <p>Is there another / better way? Help highly appreciated.</p>