Compartilhar via


FindNLSCertificate method of the PS_RemoteAccessLocal class

This method retrieves a Certificate for NLS from the local machine whose subject name does not match the ConnectTo addresses, but resolves to at least one IP from each site.

Syntax

uint32 FindNLSCertificate(
  [in]  DASiteAddresses      SiteAddresses[],
  [in]  string               ConnectToAddress[],
  [in]  string               MachineNamesForAllSites[],
  [in]  boolean              IncludeSelfSigned,
  [out] string               ResolvedAddress[],
  [out] DACertificateContext EncodedCertificate
);

Parameters

SiteAddresses [in]

An array of DASiteAddresses Site addresses. Each DASiteAddresses object is a list of addresses for a specific Site.

ConnectToAddress [in]

The addresses to which the DirectAccess client connects to.

MachineNamesForAllSites [in]

List of all the machine names for all the sites

IncludeSelfSigned [in]

This boolean indicates that self signed certificates should also be included while searching.

ResolvedAddress [out]

List of IP Addresses that resolve to the certificate subject name.

EncodedCertificate [out]

An embedded DACertificateContext object containing the encoded certificate.

Requirements

Minimum supported client
None supported
Minimum supported server
Windows Server 2012
Namespace
Root\Microsoft\Windows\RemoteAccess\server
MOF
RAServerPSProvider.mof
DLL
RAServerPSProvider.dll

See also

PS_RemoteAccessLocal