read -s -p "New HSM PIN: " pin
echo ""
export PKCS11_LIBRARY_PATH=/opt/dccom/lib/opensc-pkcs11.so
SOPIN="3537363231383830"
PIN1="$pin"
sc-hsm-tool --initialize --so-pin $SOPIN --pin $PIN1
sc-hsm-tool --initialize --so-pin $SOPIN --pin $PIN1 --dkek-shares 2
#echo "*** Making 1 of 2 DKEK shares ***"
#sc-hsm-tool --create-dkek-share dkek-share-1.pbe
#echo "*** Making 2 of 2 DKEK shares ***"
#sc-hsm-tool --create-dkek-share dkek-share-2.pbe
#sc-hsm-tool --initialize --so-pin $SOPIN --pin $PIN1 --dkek-shares 2
#sc-hsm-tool
