This program allows to use NFC Yubikeys to open Nuki smart locks.
You will need:
- A libnfc-compatible NFC reader and
libnfc-devel
(or equivalent) installed and configured (see/etc/nfc/libnfc.conf
) in your system (i.e. the GO2NFC141U from Elechouse) - A Nuki Bridge and Lock and API access to it.
- An NFC Yubikey (i.e Yubikey 5 NFC)
- A Yubicloud user ID and Secret (https://upgrade.yubico.com/getapikey/)
Go
compiler
This program runs fine on a Raspberry Pi Zero W.
After installing Go
, in order to run yubinuki
in your system:
- Download and compile the
yubinuki
program - Copy the executable to
/usr/local/bin
- Copy the configuration file to
/etc/yubinuki.json
and set it up - Install and
yubinuki.service
file and enable the service
In other words, from the repository folder, run:
go get github.com/hsanjuan/yubinuki
cd $GOPATH/src/github.com/hsanjuan/yubinuki
cp yubinuki.template.json yubinuki.json
At this point, EDIT yubinuki.json
with the right configuration values. Then:
sudo cp $GOPATH/bin/yubinuki /usr/local/bin/yubinuki
sudo mv yubinuki.json /etc/yubinuki.json
sudo chown root:root /etc/yubinuki.json
sudo chmod 0600 /etc/yubinuki.json
sudo cp yubinuki.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable yubinuki
sudo systemctl start yubinuki