Page 1 of 1

OpenVPN Connect: hardware token (Yubikey) not detected

Posted: Wed Sep 14, 2022 3:33 pm
by longnguyen6969
Hi everyone,

I want to use Yubikey 5 as an authentication key with OpenVPN Connect on Mac.

I followed this guide: https://openvpn.net/vpn-server-resource ... n-connect/

I manually generated the key and certificate and imported it into slot 9a of Yubikey.

Then copy the lib file to the module folder as instructed.

But OpenVPN doesn't recognize the Yubikey key when I plug it into my computer.

I use:
Mac Monterey 12.6
OpenVPN Client Connect 3.3.6
yubico-piv-tool-2.3.0

Can anyone who has successfully configured it re-share it for me?

Thanks & Regards,

Re: OpenVPN Connect: hardware token (Yubikey) not detected

Posted: Wed Oct 12, 2022 4:59 pm
by daysleeper83
The official guide only works when you disable SPI. To make it work just create a symlink:

ln -s /usr/local/lib/libykcs11.dylib ~/.pkcs11_modules/libykcs11.dylib

Re: OpenVPN Connect: hardware token (Yubikey) not detected

Posted: Sat Nov 12, 2022 2:35 pm
by longnguyen6969
daysleeper83 wrote:
Wed Oct 12, 2022 4:59 pm
The official guide only works when you disable SPI. To make it work just create a symlink:

ln -s /usr/local/lib/libykcs11.dylib ~/.pkcs11_modules/libykcs11.dylib
I have tried following the instructions, including the above, but no success