CreateEndorsementKeyPair method of the Win32_Tpm class
The CreateEndorsementKeyPair method of the Win32_Tpm class creates an 2048-bit endorsement key pair on the TPM. The endorsement key pair must be available for the TakeOwnership method to run successfully. You can use the IsEndorsementKeyPairPresent method to detect whether the endorsement key already exists on the TPM.
Syntax
uint32 CreateEndorsementKeyPair();
Parameters
This method has no parameters.
Return value
Type: uint32
All TPM errors as well as errors specific to TPM Base Services can be returned.
The following table lists some of the common return codes.
Return code/value | Description |
---|---|
|
The method was successful. |
|
An endorsement key pair already exists on this TPM. |
Remarks
Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Windows SDK. They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps only] |
Minimum supported server |
Windows Server 2008 [desktop apps only] |
Namespace |
Root\CIMV2\Security\MicrosoftTpm |
MOF |
|
DLL |
|
See also