CryptoSys PKI Pro Manual

Rsa.GetPrivateKeyFromPFX Method

Extract an encrypted private key from a PKCS-12 PKCS8ShroudedKeyBag, saving the output directly as a new file.

Syntax

[C#]
public static int GetPrivateKeyFromPFX(
	string outputFile,
	string pfxFile
)
[VB.NET]
Public Shared Function GetPrivateKeyFromPFX ( _
	outputFile As String, _
	pfxFile As String _
) As Integer

Parameters

outputFile
Name of new file to create
pfxFile
PKCS-12 filename

Return Value

If successful, it returns the number of bytes written to the output file; otherwise it returns a negative error code

See Also

VB6/C equivalent: RSA_GetPrivateKeyFromPFX

[Contents] [Index]

[PREV: Rsa.FromXMLString Method (String, Boolean)...]   [Contents]   [Index]   
   [NEXT: Rsa.GetPublicKeyFromCert Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.