GetCertificateIssuerURLs

數位簽章

需要 Small Business 版本。在 Delphi、C++Builder 與 Lazarus 程式碼中,請以 TPDFlibSmallBusiness(PDFlibSmallBusiness 單元)或 TPDFlibEnterprise 建立程式庫;Small Business 與 Enterprise 的 DLL 與 ActiveX 組建原樣提供此方法。Single 版本保留此方法,但會傳回空字串並把 LastErrorCode 設為 901(PDFLIB_ERROR_SMALLBUSINESS_REQUIRED)

描述

傳回憑證指定的簽發 CA 憑證位址

語法

Delphi

Function TPDFlib.GetCertificateIssuerURLs(Const CertDER: AnsiString): WideString; Virtual;

ActiveX

Function PDFlib::GetCertificateIssuerURLs(CertDER As Variant) As String

DLL

const wchar_t* DLGetCertificateIssuerURLs(int InstanceID, const char* CertDER, int CertDERLength);
const char* DLGetCertificateIssuerURLsA(int InstanceID, const char* CertDER, int CertDERLength);

參數

CertDER憑證,DER 編碼

傳回值

Addresses一行一個位址
空字串憑證沒有列出這類位址,或憑證讀不出來

備註

位址取自 Authority Information Access 擴充欄位的 id-ad-caIssuers 存取方法(RFC 5280 §4.2.2.1)

只回報 URI。不含可取得資源的位置(例如目錄名稱或電子郵件地址)會直接跳過,不會當成可下載項目回傳

另請參閱

GetCertificateOCSPURLs, AddPAdESDSSCertificateFromURL