The latest Yubico PAM module has made the use of the API Key mandatory. For more information about the API Key, please visit the following link:
http://www.yubico.com/developers/api/As you did not mention the API Key parameter with the Yubico PAM module in the PAM configuration file, you were receiving the BAD_SIGNATURE error.
We would appreciate if you can follow the steps listed below and try again:
1) Create your own Client ID and API Key pair using the following link:
https://api.yubico.com/get-api-key/
Enter your email address and YubiKey OTP and click on "Generate API Key". This will generate a new client ID and API Key for you.
2) In the PAM configuration file, mention the ID and the API Key with the Yubico PAM module as follows:
auth sufficient pam_yubico.so id=<Your Client id> key=<Your API Key> authfile=/etc/yubikey debug
For example:
auth sufficient pam_yubico.so id=3476 key=WHvkp47s6INISPMIIzKNkYDip39I= authfile=/etc/yubikey debug
We hope this helps!
Feel free to write back in case you face any problems or have further queries.