Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Exporting RSA key fails with the error: Key not valid for use in specified state. FAILED! (2014748)
Symptoms
- If you previously migrated your View Composer service from, for example, Server A to Server B, a subsequent migration from, for example, Server B to Server C fails.
- Exporting the RSA key from Server B fails
- The command aspnet_regiis -px “SviKeyContainer” “keys.xml” -pri causes the error:
Key not valid for use in specified state.
Failed!
Cause
The command aspnet_regiis -pi “SviKeyContainer” “path\keys.xml” works without error, but it is incorrect and causes subsequent export attempts to fail.
Resolution
When importing the RSA key on the first migration, use the command:
aspnet_regiis -pi “SviKeyContainer” “path\keys.xml” -exp
Additional Information
If you incorrectly imported the RSA key into Server B and now cannot export the RSA key, you can work around this issue with these steps:
- Locate the original RSA key export file from Server A.
- Run the command on Server B to re-import the RSA file with the correct parameters:
aspnet_regiis -pi “SviKeyContainer” “path\keys.xml” -exp
- Export the RSA key from Server B.
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

