News for hackers. Stuff that matters.
Re:Yubikey/Smartcard backed TLS servers by Walkman on Thursday May 03, 2018 @11:00AM (#16986623)
I did not knew about that, thank you! I instantly changed my SSH key for the generated key in my YubiKey Neo and use it everywhere.

Here is a tutorial is anyone is interested: https://developers.yubico.com/PIV/Guides/SSH_with_PIV_and_PK...

Re:Yubikey/Smartcard backed TLS servers by bonyt on Thursday May 03, 2018 @11:13AM (#16986738)
Yeah, it's cool! A couple extra tips:

- You can put "PKCS11Provider /usr/lib...." in your .ssh/config file (even tied to a specific Host block) to make it load the module automatically instead of having to use an argument every time you run ssh/sftp/scp/etc.

- For windows, putty-cac works well with the built-in smartcard/crypto API (CAPI), even on machines where you don't have administrative access (like my work machine). It even has its own version of pageant, so it'll work with tools like WinSCP as well.

https://risacher.org/putty-cac/ https://github.com/NoMoreFood/putty-cac/releases

Re:Yubikey/Smartcard backed TLS servers by Boulth on Thursday May 03, 2018 @01:36PM (#16987969)
Yep, putty cac works very nice. The only downside I found compared to gpg agent is that cac does not forget PIN when the card is removed (gpg agent does that and I like it).
Re:Yubikey/Smartcard backed TLS servers by Walkman on Thursday May 03, 2018 @04:37PM (#16989704)
I tried on both OS X and Linux, works fine, though on Linux it asks for the PIN every time, which is very annoying.

Do you know a solution for that?

Re:Yubikey/Smartcard backed TLS servers by bonyt on Thursday May 03, 2018 @05:20PM (#16990097)
I think you can add it to ssh-agent with

ssh-add -s /usr/lib/....

But, it's acting funny for me, particularly if I remove the key.

Re:Yubikey/Smartcard backed TLS servers by Walkman on Friday May 04, 2018 @01:53AM (#16992483)
I did, but it’s still asking the PIN every time :(