21 lines
488 B
Bash
Executable File
21 lines
488 B
Bash
Executable File
#!/bin/bash
|
|
|
|
export PATH=$PATH:"/Applications/YubiKey Manager.app/Contents/MacOS"
|
|
export NAME="yo"
|
|
|
|
# delete yubico OTP application
|
|
ykman otp delete 1 -f
|
|
ykman otp delete 2 -f
|
|
|
|
# we grab info
|
|
# ykman piv info
|
|
ykman piv reset -f
|
|
# we use the default Management Key here
|
|
ykman piv set-chuid -m 010203040506070801020304050607080102030405060708
|
|
ykman piv set-ccc -m 010203040506070801020304050607080102030405060708
|
|
|
|
|
|
if [ $? -eq 0 ] ; then
|
|
echo "################"
|
|
echo "YubiKey reset OK"
|
|
fi |