Click or drag to resize

RsaSavePrivateKeyInfo Method

Save a private key string to an (unencrypted) PKCS-8 private key info file.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int SavePrivateKeyInfo(
	string outputFile,
	string privateKey,
	RsaFormat format
)

Parameters

outputFile  String
Name of file to create
privateKey  String
Private key in internal format
format  RsaFormat
File format

Return Value

Int32
If successful, the return value is zero; otherwise it returns a nonzero error code
Remarks
Do not use for a production key.
See Also