Yubico / yubihsm-connector

https://developers.yubico.com/yubihsm-connector/
Apache License 2.0
30 stars 13 forks source link

If there are two yubihsm-2 devices connected, which one is yubihsm-connector using? #43

Closed vchong closed 1 year ago

vchong commented 1 year ago

We've two yubihsm-2 devices connected to a remote server. We'd like to remove the unused one. How can we find out which among the two is used by the yubihsm-connector, and which is not, via common linux shell commands? We'd like to avoid plugging and unplugging both yubihsm-2 devices to try to find out, because this is a live system. The server is running Ubuntu 20.04. In yubihsm-connector-config.yaml, the serial is not set, i.e. below

serial: ""

Is it possible both are being used by yubihsm-connector, e.g. in some sort of round-robin or etc manner?

vchong commented 1 year ago

yubihsm-shell -a get-device-info should tell you the device being used. Please reopen if answer is wrong.