Namespace: Microsoft.Clm.Provision
Assembly: Microsoft.Clm.Provision (in microsoft.clm.provision.dll)
Usage
Visual Basic |
---|
Dim smartcardUuid As Guid Dim challenge As Byte() Dim keyVersion As AdminKeyVersion Dim atr As String Dim cardId As Guid Dim returnValue As Byte() returnValue = ExecuteOperations.GetBaseCspResponse(smartcardUuid, challenge, keyVersion, atr, cardId) |
Syntax
Visual Basic |
---|
Public Shared Function GetBaseCspResponse ( _ smartcardUuid As Guid, _ challenge As Byte(), _ keyVersion As AdminKeyVersion, _ atr As String, _ cardId As Guid _ ) As Byte() |
C# |
---|
public static byte[] GetBaseCspResponse ( Guid smartcardUuid, byte[] challenge, AdminKeyVersion keyVersion, string atr, Guid cardId ) |
C++ |
---|
public: static array<unsigned char>^ GetBaseCspResponse ( Guid smartcardUuid, array<unsigned char>^ challenge, AdminKeyVersion keyVersion, String^ atr, Guid cardId ) |
J# |
---|
public static byte[] GetBaseCspResponse ( Guid smartcardUuid, byte[] challenge, AdminKeyVersion keyVersion, String atr, Guid cardId ) |
JScript |
---|
public static function GetBaseCspResponse ( smartcardUuid : Guid, challenge : byte[], keyVersion : AdminKeyVersion, atr : String, cardId : Guid ) : byte[] |
Parameters
- smartcardUuid
-
A Guid object that identifies the smart card for the operation.
- challenge
-
An array of bytes that contains the challenge string that is generated by the smart card.
- keyVersion
-
An AdminKeyVersion value that specifies the version of the administrator key that can be used to calculate the response.
- atr
-
A String object that contains the Answer To Reset (ATR) for the smart card.
- cardId
-
A Guid object that represents the smart card’s card identifier.
Return Value
An array of bytes that contains the response to the smart card’s challenge.Remarks
This method calculates the response to a previously generated challenge by the smart card during a challenge-response administrator authentication sequence as defined in Base CSP.
In order for a call to this method to succeed, the caller of the method must be authorized to call the methods in the Sensitive API group. The Sensitive API group includes those methods where the caller has access to sensitive data. This includes the administrator PIN, the user PIN, the Base CSP administrator authentication key, and/or the Base CSP challenge response information.
To allow for a user, or a group of users, to be authorized to call the methods in the Sensitive API group, FIM CM must be configured as follows:
-
Open the
web.config
file that is associated with the FIM CM Web Virtual Directory (the default location of this file is%programfiles%\Microsoft Certificate Lifecycle Manager\web\web.config
). -
Locate the configuration section for the Sensitive API group, which resembles the following:
-
<add key="Clm.ProvisionApi.SensitiveApiGroup" value="" />
-
By default, FIM CM does not authorize any users to call the methods in the Sensitive API group.
-
Set the value to the name of a security group that contains the users who are to be authorized to call the methods in the Sensitive API group. The security group must be specified in the "domainname\groupname" format. For example:
-
<add key="Clm.ProvisionApi.SensitiveApiGroup" value="domain\SensitiveApiUserGroup" />
-
Save the
web.config
file.