Skip to content

Instantly share code, notes, and snippets.

@Boggin
Created January 17, 2021 10:53
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save Boggin/efd3ae8bba01adca80da957d5d61630b to your computer and use it in GitHub Desktop.
Save Boggin/efd3ae8bba01adca80da957d5d61630b to your computer and use it in GitHub Desktop.
Use YubiKey Smart Card for BitLocker on W10

Use YubiKey Smart Card for BitLocker on W10

Create certificate

The certificate will be an Encrypting File System (EFS) self-signed smart card certificate.

  • Control Panel > User Accounts > Manage your file encryption certificates
    Create new and store locally

YubiKey Manager

  • Applications > PIV > PIN Management
    • Change Management Key
      If this is the first time then check 'Use default'.
      Generate a new management key and store a copy for later.
    • Change PUK
      If this is the first time then check 'Use default'.
    • Change PIN
      If this is the first time then check 'Use default'.
  • Applications > PIV > Configure Certificates > Card Authentication > Import
    You will need the password for the certificate and the PIV management key.

Configure the Object identifier setting

To associate the object identifier (also known as OID) of this certificate with BitLocker, you need to modify the associated Group Policy setting.

Get the OID

$> certutil -scinfo

Look for the EFS certificate and find Application[0] = 1.3.6.1.4.1.311.10.3.4 Encrypting File System. The dotted number is the OID.

Update the Local Group Policy

  • gpedit.msc
  • Computer Configuration > Administrative templates > Windows Components > BitLocker Drive Encryption
  • Validate smart card certificate usage rule compliance
    • Enabled
    • Set Object identifier

W10 registry

Allow the use of self-signed certificates.

  • regedit
  • \HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\FVE
  • New DWORD (32-bit) Value
    • 'SelfSignedCertificates'
    • Value data '1'

BitLocker Manager

Now to add the drive to BitLocker.

  • Control Panel > System and Security > BitLocker Drive Encryption
  • Select the drive and Turn BitLocker on
  • Use my smart card to unlock the drive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment