GetDACertificateFromRawData method of the PS_RemoteAccessLocal class

This method retrieves a Certificate from the local machine which matches the input raw data.

Syntax

uint32 GetDACertificateFromRawData(
  [in]  uint8                CertificateRawData[],
  [in]  uint32               CertificateRawDataType,
  [in]  uint32               Purpose,
  [out] DACertificateContext EncodedCertificate
);

Parameters

CertificateRawData [in]

Raw certificate data.

CertificateRawDataType [in]

Type of data in the CertificateRawData field.

0 (0)

None

1 (1)

SHA1 hash

2 (2)

SHA256 hash

3 (3)

Encoded Certificate from CERT_CONTEXT

Purpose [in]

The purpose for which the certificate would be used. The values for this field are: 0 - None 1 - IP-HTTPS Certificate 2 - NLS Certificate 3 - IPsec Root Certificate 4 - IPsec Intermediate Certificate 5 - VPN.

0 (0)

1 (1)

2 (2)

3 (3)

4 (4)

5 (5)

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