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 (PKCS#12) and List CertificatesLoads a PFX file (.pfx, .p12) and iterates over the certificates found within.
Dim certStore As New Chilkat.CertStore Dim success As Boolean Dim pfxPath As String = "/Users/chilkat/testData/pfx/chilkat_ssl.pfx" Dim pfxPassword As String = "test" success = certStore.LoadPfxFile(pfxPath,pfxPassword) If (success <> True) Then Debug.WriteLine(certStore.LastErrorText) Exit Sub End If Dim numCerts As Integer = certStore.NumCertificates Debug.WriteLine("PFX contains " & numCerts & " certificates") Dim i As Integer = 0 While i < numCerts Dim cert As Chilkat.Cert = certStore.GetCertificate(i) Debug.WriteLine(i & ": (Common Name) " & cert.SubjectCN) Debug.WriteLine(i & ": (Serial Number) " & cert.SerialNumber) Debug.WriteLine(i & ": (Distinguished Name) " & cert.SubjectDN) i = i + 1 End While |
© 2000-2022 Chilkat Software, Inc. All Rights Reserved.