Chilkat HOME .NET Core C# Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi ActiveX Delphi DLL Go Java Lianja Mono C# Node.js Objective-C PHP ActiveX PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift 2 Swift 3,4,5... Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(DataFlex) Get Issuer Certificate InformationSee more Certificates ExamplesA certificate contains information about its issuer. This example demonstrates how to get the issuer information from a certificate.
Use ChilkatAx-win32.pkg Procedure Test Handle hoCert Boolean iSuccess String sTemp1 Get Create (RefClass(cComChilkatCert)) To hoCert If (Not(IsComObjectCreated(hoCert))) Begin Send CreateComObject of hoCert End Get ComLoadFromFile Of hoCert "qa_data/certs/sample.cer" To iSuccess If (iSuccess = False) Begin Get ComLastErrorText Of hoCert To sTemp1 Showln sTemp1 Procedure_Return End // Get issuer information: // ----------------------------------------------------------------------- // (Not all subject fields may exist depending on the issuer certificate.) // ----------------------------------------------------------------------- // Issuer DN (Distinguished Name, i.e. all the Issuer subject parts) Get ComIssuerDN Of hoCert To sTemp1 Showln "DN: " sTemp1 // Common Subject parts: // Issuer Common Name Get ComIssuerCN Of hoCert To sTemp1 Showln "CN: " sTemp1 // Issuer Country Get ComIssuerC Of hoCert To sTemp1 Showln "C: " sTemp1 // Issuer Email address Get ComIssuerE Of hoCert To sTemp1 Showln "E: " sTemp1 // Issuer Locality Get ComIssuerL Of hoCert To sTemp1 Showln "L: " sTemp1 // Issuer Organization Get ComIssuerO Of hoCert To sTemp1 Showln "O: " sTemp1 // Issuer Organizational Unit Get ComIssuerOU Of hoCert To sTemp1 Showln "OU: " sTemp1 // Issuer State Get ComIssuerS Of hoCert To sTemp1 Showln "S: " sTemp1 End_Procedure |
© 2000-2024 Chilkat Software, Inc. All Rights Reserved.