Edit

Share via


LdapSessionOptions.TrustedCertificatesDirectory Property

Definition

Gets or sets the path of the directory containing CA certificates in the PEM format.

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

Property Value

Attributes

Exceptions

The directory does not exist.

Remarks

Multiple directories can be specified by separating them with a semi-colon.

The certificate files are looked up by the CA subject name hash value. The hash can be obtained by using, for example, openssl x509 -hash -noout -in CA.crt.

It is a common practice to have the certificate file be a symbolic link to the actual certificate file, which can be done by using openssl rehash . or c_rehash . in the directory containing the certificate files.

Applies to