keystore working