OpenVPN Connect: hardware token (Yubikey) not detected

Official client software for OpenVPN Access Server and OpenVPN Cloud.
Post Reply
longnguyen6969
OpenVpn Newbie
Posts: 2
Joined: Wed Sep 14, 2022 3:28 pm

OpenVPN Connect: hardware token (Yubikey) not detected

Post by longnguyen6969 » Wed Sep 14, 2022 3:33 pm

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,

daysleeper83
OpenVpn Newbie
Posts: 4
Joined: Fri Jan 28, 2022 8:24 am

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

Post by daysleeper83 » 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

longnguyen6969
OpenVpn Newbie
Posts: 2
Joined: Wed Sep 14, 2022 3:28 pm

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

Post by longnguyen6969 » Sat Nov 12, 2022 2:35 pm

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

Post Reply