Partager via


GetDACertificateFromSubjectName method of the PS_RemoteAccessLocal class

This method retrieves a Certificate from the local machine which matches the specified subject name.

Syntax

uint32 GetDACertificateFromSubjectName(
  [in]  string               SubjectName,
  [in]  boolean              IncludeSelfSigned,
  [in]  uint32               Flags,
  [out] DACertificateContext EncodedCertificate
);

Parameters

SubjectName [in]

Certificate Subject name.

IncludeSelfSigned [in]

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

Flags [in]

Flags indicating specific options for the search. The values are: 0 - None. 1 - Only search certificates with Server EKU.

0 (0)

1 (1)

EncodedCertificate [out]

On success, contains a DACertificateContext that describes 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