Find Private Key Tool (FindPrivateKey.exe)
.NET Framework 3.5
This command-line tool can be used to retrieve a private key from a certificate store. For example, FindPrivateKey.exe can be used to find the location and name of the private key file associated with a specific X.509 certificate in the certificate store.
FindPrivateKey <storeName> <storeLocation> [{ {-n <subjectName>} | {-t <thumbprint>} } [-f | -d | -a]]
The following tables describe the arguments and the options that can be used with the Find Private Key tool (FindPrivateKey.exe).
| Argument | Description |
|---|---|
|
storeName |
Name of the certificate store. |
|
storeLocation |
The location of the certificate store. |
| Option | Description |
|---|---|
|
/n <subjectName> |
Specifies the subject name of the certificate. |
|
/t <thumbprint> |
Specifies the thumbprint of the certificate. Use Certmgr.exe to retrieve the thumbprint of the certificate. |
|
/f |
Outputs the file name only. |
|
/d |
Outputs the directory only. |
|
/a |
Outputs the absolute file name. |
© 2007 Microsoft Corporation. All rights reserved.