Chilkat HOME Android™ Classic ASP C C++ C# Mono C# .NET Core C# C# UWP/WinRT DataFlex Delphi ActiveX Delphi DLL Visual FoxPro Java Lianja MFC Objective-C Perl PHP ActiveX PHP Extension PowerBuilder PowerShell PureBasic CkPython Chilkat2-Python Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ Visual Basic 6.0 VB.NET VB.NET UWP/WinRT VBScript Xojo Plugin Node.js Excel Go
(VB.NET UWP/WinRT) Load PFX/P12 File into Certificate Store ObjectDemonstrates how to load a .pfx/.p12 into a certificate store object.
Dim certStore As New Chilkat.CertStore ' This only loads the contents of the PFX file into the certStore object. ' It is not importing the PFX into the Windows certificate stores. Dim pfxPassword As String = "badssl.com" Dim success As Boolean = certStore.LoadPfxFile("qa_data/pfx/badssl.com-client.p12",pfxPassword) If (success = False) Then Debug.WriteLine(certStore.LastErrorText) Exit Sub End If ' Examine each certificate (loaded from the PFX) in this certStore object Dim numCerts As Integer = certStore.NumCertificates Dim i As Integer = 0 While i < numCerts Dim cert As Chilkat.Cert = certStore.GetCertificate(i) Debug.WriteLine("hasPrivateKey=" & cert.HasPrivateKey() & ", " & cert.SubjectCN) i = i + 1 End While |
© 2000-2022 Chilkat Software, Inc. All Rights Reserved.