Patricio Treviño · 01 November, 2018 · 2 min read
Import a key container
Syntax
|
aspnet_regiis -pi <container> <path> [-pku] [-exp] [-csp <provider>] |
Option |
Description |
container |
The name of the container to be imported. |
path |
The path to the exported RSA key container xml file. |
pku |
Substitutes a user-specified container for the default machine container. |
exp |
Specifies that private keys can be exported. |
csp |
Specifies the container provider to use. |
Example
|
$ cd "$env.WINDIR/Microsoft.NET/Framework64/v4.0.30319" |
|
$ .\aspnet_regiis -pi MyKeyContainer C:\Temp\MyKeyContainer.xml |
|
|
|
Microsoft (R) ASP.NET RegIIS version 4.0.30319.18408 |
|
Administration utility to install and uninstall ASP.NET on the local machine. |
|
Copyright (C) Microsoft Corporation. All rights reserved. |
|
Importing RSA Keys from file... |
|
Succeedded! |
References
Importing and Exporting Protected Configuration RSA Key Containers