Share via


CreateSelfSignedCertificate method of the PS_RemoteAccessLocal class

This method creates a self signed certificate.

Syntax

uint32 CreateSelfSignedCertificate(
  [in]  string SubjectName,
  [in]  string FriendlyName,
  [in]  uint32 Purpose,
  [out] uint8  EncodedCertificate[]
);

Parameters

SubjectName [in]

Subject name of the Certificate

FriendlyName [in]

Friendly name of the certificate

Purpose [in]

Bitmasked purpose of this Self-signed certificate 1st Bit - Server Authentication. 2nd Bit - Data Encryption

EncodedCertificate [out]

The 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