RsaSavePrivateKeyInfo Method |
Save a private key string to an (unencrypted) PKCS-8 private key info file.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int SavePrivateKeyInfo(
string outputFile,
string privateKey,
RsaFormat format
)
Public Shared Function SavePrivateKeyInfo (
outputFile As String,
privateKey As String,
format As RsaFormat
) As Integer
Parameters
- outputFile String
- Name of file to create
- privateKey String
- Private key in internal format
- format RsaFormat
- File format
Return Value
Int32If successful, the return value is zero; otherwise it returns a nonzero
error code
RemarksDo not use for a production key.
See Also