When I have this key:
https://support.yubico.com/support/solutions/articles/15000006900-security-key-by-yubico
I would like to use it to lock the screen when I pull it out and go away from computer and I would like to unlock the screen by inserting yubikey into USB slot when I come back - I want to trigger verification that it is really my key and I don't want to enter password.
I was looking here
https://www.dalemacartney.com/2013/01/14/locking-and-unlocking-the-gnome3-session-with-a-yubikey/
which seems to be a good start, however there is serial number check in the script used there and I would like to do public/private key verification without additionally entering password.
There is ykinfo -q -s command to get serial number of key. Is there cli utility to trigger yubikey authentication?