Skip Ribbon Commands
Skip to main content

Ondrej Sevecek's English Pages

:

Engineering and troubleshooting by Directory Master!
MCM: Directory

Quick Launch

Ondrej Sevecek's English Pages > Posts > TPM virtual smart card (VSC) with key attestation on Windows 10
February 10
TPM virtual smart card (VSC) with key attestation on Windows 10

On Windows 8 and Windows 2012 if you wanted to use key attestation for TPM (trusted policy module) virtual smart card (VSC) logon certificates (tpmvscmgr), you must have configured the certificate template to use the Microsoft Platform Crypto Provider.

Since Windows 10 and Windows 2016, you must configure the certificate template to use Microsoft Smart Card Key Storage Provider instead.

Comments

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

When you configure a certificate template for VSC logon and select Microsoft Smart Card Smart Card Key Storage Provider, the selections on the Key Attestation tab become unavailable, and certificates issued against this template don't have any of the attestation EKU's (purposes).
 on 17/05/2016 14:59

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

yes, it is problem of Win10 using different KSP vs. certificate templates MMC (certtmpl.msc) stubbornly insisting on the Platform Crypto Provider. You can always modify the template in ADSIEdit :-)
 on 17/05/2016 19:11

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

Thanks for your reply.  Can you give an example of solving this issue by modifying a certificate template using ADSIEdit?
 on 17/05/2016 20:08

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

just create the template in GUI as required except for the provider. then modify the provider name with ADSIEdit - CN=templatename,CN=Certificate Templates,CN=Public Key Services,CN=Services,CN=Configuration,...

this way it worked for me
 on 17/05/2016 20:31

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

Thanks for your reply.  Can you give an example of solving this issue by modifying a certificate template using ADSIEdit?
 on 17/05/2016 20:36

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

Using Server 2016 TP5 (not Windows 10) certtmpl.msc GUI, you can set the provider to Microsoft Smart Card Key Storage Provider, and you can select to require Key Attestation and to perform Key Attestation based on Hardware certificate or Hardware key.  So selection in the GUI is not a problem.

Request handling is set to "Signature and smartcard logon".

However, if you request a certificate based on this template using the certmgr.msc GUI, the request fails with "the request does not support private key attestation as defined in the certificate template"
 on 17/05/2016 21:09

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

My workaround is to use two templates. Enroll for Certificate 1, and use that as the required signing certificate for Certificate 2, as detailed below.

First, setup hardware key attestation (file whose name is the SHA2546 hash of the TPM endorsement key), hardware certificate attestation (create containers for Endorsement Key Root and Intermediate certificates, and imported TPM manufacturer's root and intermediate certificates into them), or both.  If using certificates, you need to import the TPM manufacturer's root certificate into the Trusted Room Certification Authorities as well.

Template 1 - TPM-Key-Attestation.  Microsoft Platform Crypto Provider, RSA algorithm, Require Key Attestation using hardware key, hardware certificate or both, Extensions: Endorsement key verified, Endorsement key certificate verified, or both), Authenticated Users Enroll permission.

Template 2 - Smartcard-Logon.  Microsoft Smart Card Key Storage Provider, RSA algorithm, no key attestation, Issuance Requirements: 1 authorized signature, for Issuance policy: Endorsement key verified, Endorsement key certificate verified, or both), Authenticated Users Enroll permission.
 on 20/05/2016 18:58

Re: TPM virtual smart card (VSC) with key attestation on Windows 10

thanks for sharing. I didn't have a time to check the first issue you mentioned so I plan to do a more comprehensive test on Monday including your new discoveries. thank you.
 on 20/05/2016 19:16

Add Comment

Sorry comments are disable due to the constant load of spam *


This simple antispam field seems to work well. Just put here the number.

Title


You do not need to provide any value this column. It will automatically fill with the name of the article itself.

Author *


Body *


Attachments