Chilkat HOME Android™ AutoIt C C# C++ Chilkat2-Python CkPython Classic ASP DataFlex Delphi DLL Go Java Node.js Objective-C PHP Extension Perl PowerBuilder PowerShell PureBasic Ruby SQL Server Swift Tcl Unicode C Unicode C++ VB.NET VBScript Visual Basic 6.0 Visual FoxPro Xojo Plugin
(Go) 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.
cert := chilkat.NewCert() success := cert.LoadFromFile("qa_data/certs/sample.cer") if success == false { fmt.Println(cert.LastErrorText()) cert.DisposeCert() return } // 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) fmt.Println("DN: ", cert.IssuerDN()) // Common Subject parts: // Issuer Common Name fmt.Println("CN: ", cert.IssuerCN()) // Issuer Country fmt.Println("C: ", cert.IssuerC()) // Issuer Email address fmt.Println("E: ", cert.IssuerE()) // Issuer Locality fmt.Println("L: ", cert.IssuerL()) // Issuer Organization fmt.Println("O: ", cert.IssuerO()) // Issuer Organizational Unit fmt.Println("OU: ", cert.IssuerOU()) // Issuer State fmt.Println("S: ", cert.IssuerS()) cert.DisposeCert() |
© 2000-2025 Chilkat Software, Inc. All Rights Reserved.