mirror of
https://github.com/Yubico/yubikey-ksm.git
synced 2025-01-22 07:52:14 +01:00
try to get more information on error
This commit is contained in:
parent
fd8462db77
commit
6f5fbe12f4
@ -45,4 +45,11 @@ sudo mv config-db.php /etc/yubico/ksm/
|
||||
$dbrun 'insert into yubikeys (publicname,internalname,aeskey) values("idkfefrdhtru","609963eae7b5","c68c9df8cbfe7d2f994cb904046c7218");'
|
||||
|
||||
sudo /etc/init.d/apache2 restart
|
||||
curl --silent http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku | grep -q "^OK counter=0001 low=8d40 high=0f use=00" || (echo "failed OTP"; exit 1)
|
||||
curl --silent http://localhost/wsapi/decrypt?otp=idkfefrdhtrutjduvtcjbfeuvhehdvjjlbchtlenfgku | grep -q "^OK counter=0001 low=8d40 high=0f use=00"
|
||||
if [ $? != 0 ]; then
|
||||
tail /var/log/apache2/*
|
||||
tail /var/log/auth.log
|
||||
exit 1
|
||||
else
|
||||
echo "Success!"
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user