Exports the private key of this certificate to a PVK file.

Namespace: LLCryptoLib.Security.Certificates
Assembly: LLCryptoLib (in LLCryptoLib.dll) Version: 2.0.1024.0 (2.0.1024)

Syntax

C#
public void ExportPrivateKey(
	string pvkFile,
	string password
)
Visual Basic
Public Sub ExportPrivateKey ( _
	pvkFile As String, _
	password As String _
)
Visual C++
public:
void ExportPrivateKey(
	String^ pvkFile, 
	String^ password
)

Parameters

pvkFile
Type: System..::..String
The path to the PVK file to create.
password
Type: System..::..String
The password used to encrypt the private key.

Exceptions

ExceptionCondition
LLCryptoLib.Security.Certificates..::..CertificateExceptionAn error occurs while exporting the private key.
System.IO..::..IOExceptionAn error occurs while writing the PVK file.

See Also