flexible keystore working in Client