語言

LdapSessionOptions.TrustedCertificatesDirectory 屬性

定義

取得或設定包含 CA 憑證的目錄路徑,採用 PEM 格式。

public:
 property System::String ^ TrustedCertificatesDirectory { System::String ^ get(); void set(System::String ^ value); };
[System.Runtime.Versioning.UnsupportedOSPlatform("windows")]
public string TrustedCertificatesDirectory { get; set; }
[<System.Runtime.Versioning.UnsupportedOSPlatform("windows")>]
member this.TrustedCertificatesDirectory : string with get, set
Public Property TrustedCertificatesDirectory As String

屬性值

屬性

例外狀況

該目錄不存在。

備註

多個目錄可用分號分隔來指定。

憑證檔案是依據 CA 主體名稱雜湊值查詢的。 雜湊值可透過使用例如 openssl x509 -hash -noout -in CA.crt,得到。

通常會將憑證檔案作為與實際憑證檔案的符號連結,這可以透過使用 openssl rehash . 或 c_rehash . 在包含憑證檔案的目錄中來實現。

適用於