CryptoSys PKI Toolkit Manual

Example: Pfx.MakeFile 

[VB6 equivalent: PFX_MakeFile]

Dim strOutputFile As String
Dim strCertFile As String
Dim nRet As Integer

strOutputFile = "CarlNoKey.p12"
strCertFile = "CarlRSASelf.cer"

' Given Carl's certificate only,
' create a PKCS-12 (pfx/p12) file with no private key.
nRet = Pfx.MakeFile(strOutputFile, strCertFile, "", "", "Carl's ID", 0)
Console.WriteLine("PFX_MakeFile returns " & nRet)

See Also:
Pfx.MakeFile Method (String, String, String, String, String, Pfx.Options)

[Contents] [Index]

[HOME]   [NEXT: Example: General.CompileTime ...]

Copyright © 2004-12 D.I. Management Services Pty Ltd. All rights reserved.