I am using aspnet_regiis.exe to Encrypt a connectionStrings on an ASP.Net application. The application in productions runs on a Web Farm I run the following command to create a RSA encryption key with the export option.

aspnet_regiis -pc "CustomKeys" -exp

Then I encrypt my connectionStrings using another command. Then I export the RSA encryption key

aspnet_regiis -px "CustomKeys" "C:\CustomKeys.xml" -pri

Then I import the key on the Server Farm Machine.

aspnet_regiis -pi "CustomKeys" "C:\CustomKeys.xml"

Then I am told to delete the file CustomeKeys.xml

My question is where is that private key stored after it is imported and deleted? I am using a Windows 10 machine. And will it still be exportable? Is it safe?


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.