From fd4b6f3eb46e90ce34a34585831a5b3fb6079922 Mon Sep 17 00:00:00 2001 From: Jean-Paul van Ravensberg <14926452+DevSecNinja@users.noreply.github.com> Date: Sat, 31 Oct 2020 11:15:51 +0100 Subject: [PATCH 1/2] Add PowerShell command to get YubiKey name --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f84f660..684ffc6 100644 --- a/README.md +++ b/README.md @@ -2162,12 +2162,19 @@ $ doas reboot ## Windows -Windows can already have some virtual smartcard readers installed, like the one provided for Windows Hello. To ensure your YubiKey is the correct one used by scdaemon, you should add it to its configuration. You will need your device's full name. To find out what is your device's full name, plug your YubiKey, open the Device Manager, select "View > Show hidden devices". Go to the Software Devices list, you should see something like `Yubico YubiKey OTP+FIDO+CCID 0`. The name slightly differs according to the model. Thanks to [Scott Hanselman](https://www.hanselman.com/blog/HowToSetupSignedGitCommitsWithAYubiKeyNEOAndGPGAndKeybaseOnWindows.aspx) for sharing this information. +Windows can already have some virtual smartcard readers installed, like the one provided for Windows Hello. To ensure your YubiKey is the correct one used by scdaemon, you should add it to its configuration. You will need your device's full name. To find out what is your device's full name, plug your YubiKey and open PowerShell to run the following command: + +```` powershell +PS C:\WINDOWS\system32> Get-PnpDevice -Class SoftwareDevice | Where-Object {$_.FriendlyName -like "*YubiKey*"} | Select-Object -ExpandProperty FriendlyName +Yubico YubiKey OTP+FIDO+CCID 0 +```` + +The name slightly differs according to the model. Thanks to [Scott Hanselman](https://www.hanselman.com/blog/HowToSetupSignedGitCommitsWithAYubiKeyNEOAndGPGAndKeybaseOnWindows.aspx) for sharing this information. * Create or edit `%APPDATA%/gnupg/scdaemon.conf` to add: ``` -reader-port +reader-port ``` * Edit `%APPDATA%/gnupg/gpg-agent.conf` to add: From b1d3d279eb932f5ea3f0854a48567911f8524f11 Mon Sep 17 00:00:00 2001 From: Jean-Paul van Ravensberg <14926452+DevSecNinja@users.noreply.github.com> Date: Sat, 31 Oct 2020 11:29:35 +0100 Subject: [PATCH 2/2] Change edit to create or edit As gpg-agent.conf didn't exist on my system --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 684ffc6..2a96a63 100644 --- a/README.md +++ b/README.md @@ -2177,7 +2177,7 @@ The name slightly differs according to the model. Thanks to [Scott Hanselman](ht reader-port ``` -* Edit `%APPDATA%/gnupg/gpg-agent.conf` to add: +* Create or edit `%APPDATA%/gnupg/gpg-agent.conf` to add: ``` enable-ssh-support