Importing RSA Key from file

117 Views Asked by At

Getting an error "Safe handle has been closed" while try to Importing RSA Keys from file.

The following command I have used in Visual Studio 2022 command prompt

aspnet_regiis -pi "keyname" "C:\keyfile.xml"

Anyone know how to resolve?

1

There are 1 best solutions below

1
Guy Standen On

There is a section about this issue on this blog https://austrianalex.com/rsaprotectedconfigurationprovider-not-recommended-for-children-under-5.html It involves ensuring permissions on the C:\ProgramData\Microsoft\Crypto\RSA are correct